[gnome-panel] remove connect server applet
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] remove connect server applet
- Date: Wed, 24 May 2017 17:59:30 +0000 (UTC)
commit 0824c4201d9f74207d752c823984a94805b41248
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed May 24 20:57:24 2017 +0300
remove connect server applet
Nautilus removed nautilus-connect-server application making this
applet useless.
gnome-panel/panel-action-button.c | 51 -------------------------------------
gnome-panel/panel-enums.h | 1 -
gnome-panel/panel-menu-items.c | 7 -----
3 files changed, 0 insertions(+), 59 deletions(-)
---
diff --git a/gnome-panel/panel-action-button.c b/gnome-panel/panel-action-button.c
index 05ff4b9..515f5c8 100644
--- a/gnome-panel/panel-action-button.c
+++ b/gnome-panel/panel-action-button.c
@@ -77,7 +77,6 @@ static PanelEnumStringPair panel_action_type_map [] = {
{ PANEL_ACTION_RUN, "run" },
{ PANEL_ACTION_SEARCH, "search" },
{ PANEL_ACTION_FORCE_QUIT, "force-quit" },
- { PANEL_ACTION_CONNECT_SERVER, "connect-server" },
{ PANEL_ACTION_HIBERNATE, "hibernate" },
{ PANEL_ACTION_SUSPEND, "suspend" },
{ PANEL_ACTION_HYBRID_SLEEP, "hybrid-sleep" },
@@ -330,48 +329,6 @@ panel_action_force_quit (GtkWidget *widget)
gtk_get_current_event_time ());
}
-/* Connect Server
- */
-static void
-panel_action_connect_server (GtkWidget *widget)
-{
- GdkScreen *screen;
- GAppInfo *app_info;
- GError *error;
-
- screen = gtk_widget_get_screen (GTK_WIDGET (widget));
- error = NULL;
- app_info = g_app_info_create_from_commandline ("nautilus-connect-server",
- _("Connect to server"),
- G_APP_INFO_CREATE_NONE,
- &error);
-
- if (!error) {
- GdkAppLaunchContext *launch_context;
- GdkDisplay *display;
-
- display = gdk_screen_get_display (screen);
- launch_context = gdk_display_get_app_launch_context (display);
- gdk_app_launch_context_set_screen (launch_context, screen);
-
- g_app_info_launch (app_info, NULL,
- G_APP_LAUNCH_CONTEXT (launch_context),
- &error);
-
- g_object_unref (launch_context);
- g_object_unref (app_info);
- }
-
- if (error) {
- panel_error_dialog (NULL, screen,
- "cannot_connect_server",
- TRUE,
- _("Could not connect to server"),
- error->message);
- g_clear_error (&error);
- }
-}
-
typedef struct {
PanelActionButtonType type;
const gchar *icon_name;
@@ -443,14 +400,6 @@ static PanelAction actions [] = {
panel_lockdown_get_disable_force_quit_s
},
{
- PANEL_ACTION_CONNECT_SERVER,
- PANEL_ICON_REMOTE, //FIXME icon
- N_("Connect to Server..."),
- N_("Connect to a remote computer or shared disk"),
- "ACTION:connect-server:NEW",
- panel_action_connect_server, NULL, NULL, NULL
- },
- {
PANEL_ACTION_HIBERNATE,
PANEL_ICON_HIBERNATE,
N_("Hibernate"),
diff --git a/gnome-panel/panel-enums.h b/gnome-panel/panel-enums.h
index e8b7deb..047059e 100644
--- a/gnome-panel/panel-enums.h
+++ b/gnome-panel/panel-enums.h
@@ -47,7 +47,6 @@ typedef enum {
PANEL_ACTION_RUN,
PANEL_ACTION_SEARCH,
PANEL_ACTION_FORCE_QUIT,
- PANEL_ACTION_CONNECT_SERVER,
PANEL_ACTION_HIBERNATE,
PANEL_ACTION_SUSPEND,
PANEL_ACTION_HYBRID_SLEEP,
diff --git a/gnome-panel/panel-menu-items.c b/gnome-panel/panel-menu-items.c
index 815e61f..e72be0d 100644
--- a/gnome-panel/panel-menu-items.c
+++ b/gnome-panel/panel-menu-items.c
@@ -1160,13 +1160,6 @@ panel_place_menu_item_create_menu (PanelPlaceMenuItem *place_item)
panel_place_menu_item_append_remote_gio (place_item, places_menu);
- if (panel_is_program_in_path ("nautilus-connect-server")) {
- item = panel_menu_items_create_action_item (PANEL_ACTION_CONNECT_SERVER);
- if (item != NULL)
- gtk_menu_shell_append (GTK_MENU_SHELL (places_menu),
- item);
- }
-
add_menu_separator (places_menu);
item = panel_menu_item_desktop_new ("gnome-search-tool.desktop",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]