summaryrefslogtreecommitdiff
path: root/x11-wm/xfce4-panel/files/patch-plugins_applicationsmenu_applicationsmenu.c
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2019-09-19 23:46:33 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2019-09-19 23:46:33 +0000
commite69e6941cc0f1dab5aefa920fb26c0f26941f258 (patch)
treee3316902afbb4318b0439dc574f0496749ecfdc3 /x11-wm/xfce4-panel/files/patch-plugins_applicationsmenu_applicationsmenu.c
parentUpgrade editors/openoffice-devel to upstream git hash d871312c80. (diff)
Welcome XFCE 4.14 to the FreeBSD ports tree
- This XFCE release uses almost exclusively gtk3, so the USES=xfce now defaults to gtk3 - Make x11-themes/gtk-xfce-engine an optional dependency(disabled by default), it only supports gtk2, so would leave miost of this XFCE version unthemed. - Add Greybird as an optional and enabled dependency as a modern theme supporting both GTK versions and all other XFCE parts - The xfce4-vala port is deprecated and removed. The VALA bindings are available in the library ports using the GIR and VAPI options (on by default) - Fixed various missing library and portlint warnings (portmgr fixit blanket) - Default Display Manager changed to lightdm (Thanks to woodsb02 for help) - Add x11/xfce4-screensaver as an optional dependency to the xfce4-goodies (enabled by default) - Remove dependency on x11-fm/thunar-vfs and deprecate the port. It is EOL upstream and the functionality is included in thunar itself Update: - Added back sysutils/xfce4-places-plugin, updated to 1.8.1 - archivers/thunar-archive-plugin to 0.4.0 - audio/thunar-media-tags-plugin to 0.3.0 - audio/xfce4-mpc-plugin to 0.5.2 - audio/xfce4-pulseaudio-plugin to 0.4.2 - deskutils/xfce4-tumbler to 0.2.7 - devel/thunar-vcs-plugin to 0.2.0 [1] - devel/xfce4-dev-tools to 4.14.0 - misc/xfce4-appfinder to 4.14.0 - misc/xfce4-weather-plugin to 0.10.0 - multimedia/xfce4-parole to 1.0.4 - sysutils/gigolo to 0.5.0 - sysutils/xfce4-battery-plugin to 1.1.3 - sysutils/xfce4-fsguard-plugin to 1.1.1 - sysutils/xfce4-netload-plugin to 1.3.2 - sysutils/xfce4-power-manage to 1.6.5 - sysutils/xfce4-settings 4.14.1 - sysutils/xfce4-systemload-plugin to 1.2.3 - sysutils/xfce4-wavelan-plugin to 0.6.1 - www/xfce4-smartbookmark-plugin to 0.5.1 - x11-clocks/xfce4-datetime-plugin to 0.8.0 - Added new xfce4-stopwatch-plugin, version 0.3.1 - x11-clocks/xfce4-timer-out-plugin to 1.0.3 - x11-fm/thunar to 1.8.9 - x11-wm/xfce4-desktop to 4.14.1 - x11-wm/xfce4-panel to 4.14.0 - x11-wm/xfce4-session to 4.14.0 - x11-wm/xfce4-wm to 4.14.0 - x11/libexo to 0.12.8 - x11/libxfce4menu to 4.14.1 - x11/libxfce4util to 4.14.0 - x11/xfce4-conf to 4.14.1 - x11/xfce4-dashboard to 0.7.5 - x11/xfce4-screensaver to 0.1.8 - x11/xfce4-screenshooter-plugin to 1.9.6 - x11/xfce4-verve-plugin to 2.0.0 Thanks to: Olivier Duchateau <duchateau.olivier@gmail.com> PR: 240236 Exp-run by: antoine Tested by: sbruno Approved by: sergey.dyatko@gmail.com (maintainer timeout via email), portmgr (fixit blanket, port breaks with new Thunar if not updated) [1] Differential Revision: https://reviews.freebsd.org/D21278
Notes
Notes: svn path=/head/; revision=512378
Diffstat (limited to 'x11-wm/xfce4-panel/files/patch-plugins_applicationsmenu_applicationsmenu.c')
-rw-r--r--x11-wm/xfce4-panel/files/patch-plugins_applicationsmenu_applicationsmenu.c58
1 files changed, 58 insertions, 0 deletions
diff --git a/x11-wm/xfce4-panel/files/patch-plugins_applicationsmenu_applicationsmenu.c b/x11-wm/xfce4-panel/files/patch-plugins_applicationsmenu_applicationsmenu.c
new file mode 100644
index 000000000000..c8bb24f19bbc
--- /dev/null
+++ b/x11-wm/xfce4-panel/files/patch-plugins_applicationsmenu_applicationsmenu.c
@@ -0,0 +1,58 @@
+--- plugins/applicationsmenu/applicationsmenu.c.orig 2019-04-05 19:49:05 UTC
++++ plugins/applicationsmenu/applicationsmenu.c
+@@ -72,6 +72,7 @@ struct _ApplicationsMenuPlugin
+
+ gulong style_set_id;
+ gulong screen_changed_id;
++ gulong theme_changed_id;
+ };
+
+ enum
+@@ -209,9 +210,13 @@ applications_menu_plugin_class_init (ApplicationsMenuP
+ static void
+ applications_menu_plugin_init (ApplicationsMenuPlugin *plugin)
+ {
++ GtkIconTheme *icon_theme;
++
+ /* init garcon environment */
+ garcon_set_environment_xdg (GARCON_ENVIRONMENT_XFCE);
+
++ icon_theme = gtk_icon_theme_get_default ();
++
+ plugin->button = xfce_panel_create_toggle_button ();
+ xfce_panel_plugin_add_action_widget (XFCE_PANEL_PLUGIN (plugin), plugin->button);
+ gtk_container_add (GTK_CONTAINER (plugin), plugin->button);
+@@ -244,6 +249,10 @@ applications_menu_plugin_init (ApplicationsMenuPlugin
+ G_CALLBACK (applications_menu_button_theme_changed), plugin);
+ plugin->screen_changed_id = g_signal_connect_swapped (G_OBJECT (plugin->button), "screen-changed",
+ G_CALLBACK (applications_menu_button_theme_changed), plugin);
++ plugin->theme_changed_id = g_signal_connect_swapped (G_OBJECT (icon_theme),
++ "changed",
++ G_CALLBACK (applications_menu_plugin_set_garcon_menu),
++ plugin);
+ }
+
+
+@@ -443,6 +452,7 @@ static void
+ applications_menu_plugin_free_data (XfcePanelPlugin *panel_plugin)
+ {
+ ApplicationsMenuPlugin *plugin = XFCE_APPLICATIONS_MENU_PLUGIN (panel_plugin);
++ GtkIconTheme *icon_theme;
+
+ if (plugin->menu != NULL)
+ gtk_widget_destroy (plugin->menu);
+@@ -457,6 +467,14 @@ applications_menu_plugin_free_data (XfcePanelPlugin *p
+ {
+ g_signal_handler_disconnect (plugin->button, plugin->screen_changed_id);
+ plugin->screen_changed_id = 0;
++ }
++
++ if (plugin->theme_changed_id != 0)
++ {
++ icon_theme = gtk_icon_theme_get_default ();
++ g_signal_handler_disconnect (G_OBJECT (icon_theme),
++ plugin->theme_changed_id);
++ plugin->theme_changed_id = 0;
+ }
+
+ g_free (plugin->button_title);