[Xfce4-commits] [panel-plugins/xfce4-mount-plugin] 01/01: Added title to popup menu; even if it is not empty. Addresses feature request 14478.
noreply at xfce.org
noreply at xfce.org
Mon Oct 1 23:50:56 CEST 2018
This is an automated email from the git hooks/post-receive script.
t i m y s t e r y p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-mount-plugin.
commit bf94906a26cf87a6538408e085fc8d89376ee872
Author: Fabian <timystery at arcor.de>
Date: Mon Oct 1 23:21:36 2018 +0200
Added title to popup menu; even if it is not empty. Addresses feature request 14478.
---
panel-plugin/mount-plugin.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/panel-plugin/mount-plugin.c b/panel-plugin/mount-plugin.c
index 17b6b8c..2b5683b 100644
--- a/panel-plugin/mount-plugin.c
+++ b/panel-plugin/mount-plugin.c
@@ -321,6 +321,7 @@ mounter_data_new (t_mounter *mt)
unsigned int i;
t_disk * disk;
t_disk_display * disk_display;
+ GtkWidget * title_menu_item, *title_label;
GPtrArray *array = NULL, *disk_displays = NULL;
char *dev_mp; /* device or mountpoint */
@@ -348,6 +349,14 @@ mounter_data_new (t_mounter *mt)
/* menu with menu_item */
mt->menu = gtk_menu_new ();
+
+ title_menu_item = gtk_menu_item_new();
+ title_label = gtk_label_new(NULL);
+ gtk_label_set_markup(GTK_LABEL(title_label), _("<b><i><span font_size=\"large\">Xfce 4 Mount Plugin – Devices and Mount Points</span></i></b>"));
+ gtk_container_add (GTK_CONTAINER(title_menu_item), title_label);
+ gtk_menu_shell_append (GTK_MENU_SHELL(mt->menu),
+ title_menu_item);
+
disk_displays =g_ptr_array_new();
for (i=0; i < mt->pdisks->len; i++)
{
@@ -362,6 +371,7 @@ mounter_data_new (t_mounter *mt)
gtk_menu_shell_append (GTK_MENU_SHELL(mt->menu),
disk_display->menu_item);
}
+
gtk_widget_show_all(mt->menu);
disk_display_set_sizes(disk_displays);
@@ -1079,7 +1089,7 @@ mounter_show_about(XfcePanelPlugin *plugin, t_mounter *mt)
"program-name", PACKAGE_NAME,
"comments", _("Show partitions/devices and allow to mount/unmount them"),
"website", "https://goodies.xfce.org/projects/panel-plugins/xfce4-mount-plugin",
- "copyright", _("Copyright (c) 2005-2016\n"),
+ "copyright", _("Copyright (c) 2005-2018\n"),
"authors", auth, NULL);
// TODO: add translators.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list