[gnome-panel] menu: add network to places menu
- From: Alberts MuktupÄvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] menu: add network to places menu
- Date: Sun, 4 Feb 2018 20:02:32 +0000 (UTC)
commit e5ad2fcaedd500de4c62c3d330763b95d43f31a5
Author: Alberts MuktupÄvels <alberts muktupavels gmail com>
Date: Sun Feb 4 21:29:30 2018 +0200
menu: add network to places menu
modules/menu/gp-places-menu.c | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/modules/menu/gp-places-menu.c b/modules/menu/gp-places-menu.c
index ad95b9c..029dfbb 100644
--- a/modules/menu/gp-places-menu.c
+++ b/modules/menu/gp-places-menu.c
@@ -268,6 +268,26 @@ append_computer (GpPlacesMenu *menu)
}
static void
+append_network (GpPlacesMenu *menu)
+{
+ GFile *file;
+ const gchar *label;
+ const gchar *tooltip;
+ GtkWidget *item;
+
+ file = g_file_new_for_uri ("network://");
+
+ label = _("Network");
+ tooltip = _("Browse bookmarked and local network locations");
+
+ item = create_menu_item (menu, file, NULL, "network-workgroup", label, tooltip);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
+ gtk_widget_show (item);
+
+ g_object_unref (file);
+}
+
+static void
remove_item (GtkWidget *widget,
gpointer user_data)
{
@@ -286,6 +306,9 @@ menu_reload (GpPlacesMenu *menu)
append_separator (menu);
append_computer (menu);
+
+ append_separator (menu);
+ append_network (menu);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]