Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
thunar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xfce
thunar
Commits
442461b1
Commit
442461b1
authored
4 years ago
by
Alexander Schwinn
Browse files
Options
Downloads
Patches
Plain Diff
Regression: Window menu not updated properly (Issue #320)
Fixes #320 Fixes #321
parent
ead4f16e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#846
passed
4 years ago
Stage: build
Stage: distcheck
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
thunar/thunar-gtk-extensions.c
+26
-0
26 additions, 0 deletions
thunar/thunar-gtk-extensions.c
thunar/thunar-gtk-extensions.h
+1
-0
1 addition, 0 deletions
thunar/thunar-gtk-extensions.h
thunar/thunar-window.c
+125
-256
125 additions, 256 deletions
thunar/thunar-window.c
with
152 additions
and
256 deletions
thunar/thunar-gtk-extensions.c
+
26
−
0
View file @
442461b1
...
...
@@ -125,6 +125,32 @@ thunar_gtk_menu_thunarx_menu_item_new (GObject *thunarx_menu_item,
/**
* thunar_gtk_menu_clean:
* @menu : a #GtkMenu.
*
* Walks through the menu and all submenus and removes them,
* so that the result will be a clean #GtkMenu without any items
**/
void
thunar_gtk_menu_clean
(
GtkMenu
*
menu
)
{
GList
*
children
,
*
lp
;
GtkWidget
*
submenu
;
children
=
gtk_container_get_children
(
GTK_CONTAINER
(
menu
));
for
(
lp
=
children
;
lp
!=
NULL
;
lp
=
lp
->
next
)
{
submenu
=
gtk_menu_item_get_submenu
(
lp
->
data
);
if
(
submenu
!=
NULL
)
gtk_widget_destroy
(
submenu
);
gtk_container_remove
(
GTK_CONTAINER
(
menu
),
lp
->
data
);
}
g_list_free
(
children
);
}
/**
* thunar_gtk_menu_run:
* @menu : a #GtkMenu.
...
...
This diff is collapsed.
Click to expand it.
thunar/thunar-gtk-extensions.h
+
1
−
0
View file @
442461b1
...
...
@@ -27,6 +27,7 @@ G_BEGIN_DECLS;
void
thunar_gtk_label_set_a11y_relation
(
GtkLabel
*
label
,
GtkWidget
*
widget
);
void
thunar_gtk_menu_clean
(
GtkMenu
*
menu
);
void
thunar_gtk_menu_run
(
GtkMenu
*
menu
);
void
thunar_gtk_menu_run_at_event
(
GtkMenu
*
menu
,
...
...
This diff is collapsed.
Click to expand it.
thunar/thunar-window.c
+
125
−
256
View file @
442461b1
This diff is collapsed.
Click to expand it.
Harald Judt
@hjudt
mentioned in issue
#336 (closed)
·
4 years ago
mentioned in issue
#336 (closed)
mentioned in issue #336
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment