Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
xfce4-panel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Simon Steinbeiß
xfce4-panel
Commits
77d780bd
Commit
77d780bd
authored
Jul 15, 2020
by
Simon Steinbeiss
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up previous commit
parent
7da06549
Pipeline
#1320
passed with stages
in 4 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
plugins/tasklist/tasklist-widget.c
plugins/tasklist/tasklist-widget.c
+11
-11
No files found.
plugins/tasklist/tasklist-widget.c
View file @
77d780bd
...
...
@@ -2985,29 +2985,31 @@ xfce_tasklist_button_get_child_path (XfceTasklistChild *child)
static
void
xfce_tasklist_button_add_
start
_new_instance_item
(
XfceTasklistChild
*
child
,
GtkWidget
*
menu
,
gboolean
append
)
xfce_tasklist_button_add_
launch
_new_instance_item
(
XfceTasklistChild
*
child
,
GtkWidget
*
menu
,
gboolean
append
)
{
gchar
*
path
;
GtkWidget
*
sep
;
GtkWidget
*
item
;
/* add "Launch New Instance" item to menu if supported by the platform */
path
=
xfce_tasklist_button_get_child_path
(
child
);
if
(
path
==
NULL
)
return
;
sep
=
gtk_separator_menu_item_new
();
gtk_widget_show
(
sep
);
item
=
gtk_menu_item_new_with_label
(
_
(
"
Start
New Instance..."
));
item
=
gtk_menu_item_new_with_label
(
_
(
"
Launch
New Instance..."
));
g_object_set_data_full
(
G_OBJECT
(
item
),
"exe-path"
,
path
,
g_free
);
gtk_widget_show
(
item
);
g_signal_connect
(
item
,
"activate"
,
G_CALLBACK
(
xfce_tasklist_button_start_new_instance_clicked
),
child
);
gtk_widget_show
(
sep
);
gtk_widget_show
(
item
);
if
(
append
)
{
gtk_menu_shell_append
(
GTK_MENU_SHELL
(
menu
),
sep
);
...
...
@@ -3018,8 +3020,6 @@ xfce_tasklist_button_add_start_new_instance_item (XfceTasklistChild *child,
gtk_menu_shell_prepend
(
GTK_MENU_SHELL
(
menu
),
sep
);
gtk_menu_shell_prepend
(
GTK_MENU_SHELL
(
menu
),
item
);
}
return
menu
;
}
...
...
@@ -3066,7 +3066,7 @@ xfce_tasklist_button_button_press_event (GtkWidget *button,
if
(
event
->
button
==
3
&&
!
GTK_IS_MENU_ITEM
(
button
))
{
menu
=
wnck_action_menu_new
(
child
->
window
);
xfce_tasklist_button_add_
start
_new_instance_item
(
child
,
menu
,
FALSE
);
xfce_tasklist_button_add_
launch
_new_instance_item
(
child
,
menu
,
FALSE
);
g_signal_connect
(
G_OBJECT
(
menu
),
"selection-done"
,
G_CALLBACK
(
xfce_tasklist_button_menu_destroy
),
child
);
...
...
@@ -3739,7 +3739,7 @@ xfce_tasklist_group_button_menu (XfceTasklistChild *group_child,
wnck_action_menu_new
(
child
->
window
));
if
(
li
->
next
==
NULL
)
xfce_tasklist_button_add_
start
_new_instance_item
(
child
,
menu
,
TRUE
);
xfce_tasklist_button_add_
launch
_new_instance_item
(
child
,
menu
,
TRUE
);
}
}
...
...
Write
Preview
Markdown
is supported
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