Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Daniel Chabrowski
xfce4-taskmanager
Commits
aa7b4256
Commit
aa7b4256
authored
Jul 16, 2020
by
Daniel Chabrowski
Browse files
Fix indentation
parent
08c0f186
Pipeline
#1347
passed with stages
in 1 minute and 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/process-tree-view.c
View file @
aa7b4256
...
...
@@ -499,7 +499,7 @@ create_popup_menu (XtmProcessTreeView *treeview, GPid pid, guint activate_time)
gtk_widget_destroy
(
menu
);
menu
=
build_context_menu
(
treeview
,
pid
);
return
menu
;
return
menu
;
}
static
gboolean
...
...
@@ -528,7 +528,7 @@ treeview_clicked (XtmProcessTreeView *treeview, GdkEventButton *event)
G_DEBUG_FMT
(
"Found iter with pid %d"
,
pid
);
gtk_menu_popup_at_pointer
(
GTK_MENU
(
create_popup_menu
(
treeview
,
pid
,
event
->
time
)),
NULL
);
gtk_menu_popup_at_pointer
(
GTK_MENU
(
create_popup_menu
(
treeview
,
pid
,
event
->
time
)),
NULL
);
return
TRUE
;
}
...
...
@@ -554,11 +554,11 @@ treeview_key_pressed (XtmProcessTreeView *treeview, GdkEventKey *event)
if
(
event
->
keyval
==
GDK_KEY_Menu
)
{
GdkRectangle
rect
=
{
.
x
=
5
,
.
y
=
5
,
.
width
=
0
,
.
height
=
0
};
GdkWindow
*
window
=
gtk_tree_view_get_bin_window
(
GTK_TREE_VIEW
(
treeview
));
GdkRectangle
rect
=
{
.
x
=
5
,
.
y
=
5
,
.
width
=
0
,
.
height
=
0
};
GdkWindow
*
window
=
gtk_tree_view_get_bin_window
(
GTK_TREE_VIEW
(
treeview
));
gtk_menu_popup_at_rect
(
GTK_MENU
(
create_popup_menu
(
treeview
,
pid
,
event
->
time
)),
window
,
&
rect
,
GDK_GRAVITY_NORTH_WEST
,
GDK_GRAVITY_NORTH_WEST
,
NULL
);
gtk_menu_popup_at_rect
(
GTK_MENU
(
create_popup_menu
(
treeview
,
pid
,
event
->
time
)),
window
,
&
rect
,
GDK_GRAVITY_NORTH_WEST
,
GDK_GRAVITY_NORTH_WEST
,
NULL
);
return
TRUE
;
}
else
if
(
event
->
keyval
==
GDK_KEY_Delete
)
...
...
src/task-manager.c
View file @
aa7b4256
...
...
@@ -343,7 +343,7 @@ task_list_find_for_pid (GArray *task_list, GPid pid, Task **task, guint *idx)
static
glong
__current_timestamp
(
void
)
{
gint64
tv
=
g_get_real_time
();
gint64
tv
=
g_get_real_time
();
return
tv
/
G_USEC_PER_SEC
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment