From 9a3f023e2c440a1fd6e895ee3c88e3f1352ac52d Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Thu, 16 Dec 2010 10:06:46 -0500 Subject: [PATCH] proxy: remove proxy panel It is replaced by the network panel. --- configure.ac | 2 - panels/Makefile.am | 1 - panels/proxy/Makefile.am | 57 - panels/proxy/cc-proxy-panel.c | 127 -- panels/proxy/cc-proxy-panel.h | 77 - panels/proxy/gnome-proxy-panel.desktop.in.in | 17 - panels/proxy/gnome-proxy-properties.c | 1306 ----------------- panels/proxy/gnome-proxy-properties.ui | 1086 -------------- .../icons/16x16/gnome-proxy-properties.png | Bin 824 -> 0 bytes .../icons/22x22/gnome-proxy-properties.png | Bin 1081 -> 0 bytes .../icons/24x24/gnome-proxy-properties.png | Bin 1081 -> 0 bytes .../icons/32x32/gnome-proxy-properties.png | Bin 1855 -> 0 bytes .../icons/48x48/gnome-proxy-properties.png | Bin 3191 -> 0 bytes .../icons/scalable/gnome-proxy-properties.svg | 628 -------- panels/proxy/proxy-module.c | 41 - po/POTFILES.in | 3 - po/POTFILES.skip | 1 - 17 files changed, 3346 deletions(-) delete mode 100644 panels/proxy/Makefile.am delete mode 100644 panels/proxy/cc-proxy-panel.c delete mode 100644 panels/proxy/cc-proxy-panel.h delete mode 100644 panels/proxy/gnome-proxy-panel.desktop.in.in delete mode 100644 panels/proxy/gnome-proxy-properties.c delete mode 100644 panels/proxy/gnome-proxy-properties.ui delete mode 100644 panels/proxy/icons/16x16/gnome-proxy-properties.png delete mode 100644 panels/proxy/icons/22x22/gnome-proxy-properties.png delete mode 100644 panels/proxy/icons/24x24/gnome-proxy-properties.png delete mode 100644 panels/proxy/icons/32x32/gnome-proxy-properties.png delete mode 100644 panels/proxy/icons/48x48/gnome-proxy-properties.png delete mode 100644 panels/proxy/icons/scalable/gnome-proxy-properties.svg delete mode 100644 panels/proxy/proxy-module.c diff --git a/configure.ac b/configure.ac index c8c5b69f5..7393badce 100644 --- a/configure.ac +++ b/configure.ac @@ -346,8 +346,6 @@ panels/media/Makefile panels/media/gnome-media-panel.desktop.in panels/mouse/Makefile panels/mouse/gnome-mouse-panel.desktop.in -panels/proxy/Makefile -panels/proxy/gnome-proxy-panel.desktop.in panels/sound/Makefile panels/sound/data/Makefile panels/sound/data/gnome-sound-panel.desktop.in diff --git a/panels/Makefile.am b/panels/Makefile.am index 9e1ae87aa..78d71cccb 100644 --- a/panels/Makefile.am +++ b/panels/Makefile.am @@ -6,7 +6,6 @@ SUBDIRS= \ media \ mouse \ region \ - proxy \ network \ info \ sound \ diff --git a/panels/proxy/Makefile.am b/panels/proxy/Makefile.am deleted file mode 100644 index 5a8d37324..000000000 --- a/panels/proxy/Makefile.am +++ /dev/null @@ -1,57 +0,0 @@ -# This is used in GNOMECC_CAPPLETS_CFLAGS -cappletname = proxy - -ccpanelsdir = $(PANELS_DIR) -ccpanels_LTLIBRARIES = libproxy.la - - -libproxy_la_SOURCES = gnome-proxy-properties.c \ - cc-proxy-panel.c \ - cc-proxy-panel.h \ - proxy-module.c -libproxy_la_LIBADD = $(PANEL_LIBS) $(GNOMECC_CAPPLETS_LIBS) -libproxy_la_LDFLAGS = $(PANEL_LDFLAGS) - - -@INTLTOOL_DESKTOP_RULE@ - -uidir = $(pkgdatadir)/ui -dist_ui_DATA = gnome-proxy-properties.ui - -icons16dir = $(datadir)/icons/hicolor/16x16/apps -dist_icons16_DATA = icons/16x16/gnome-proxy-properties.png -icons22dir = $(datadir)/icons/hicolor/22x22/apps -dist_icons22_DATA = icons/22x22/gnome-proxy-properties.png -icons24dir = $(datadir)/icons/hicolor/24x24/apps -dist_icons24_DATA = icons/24x24/gnome-proxy-properties.png -icons32dir = $(datadir)/icons/hicolor/32x32/apps -dist_icons32_DATA = icons/32x32/gnome-proxy-properties.png -icons48dir = $(datadir)/icons/hicolor/48x48/apps -dist_icons48_DATA = icons/48x48/gnome-proxy-properties.png -iconssvgdir = $(datadir)/icons/hicolor/scalable/apps -dist_iconssvg_DATA = icons/scalable/gnome-proxy-properties.svg - -desktopdir = $(datadir)/applications -desktop_in_files = gnome-proxy-panel.desktop.in -desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) - -INCLUDES = \ - $(GNOMECC_CAPPLETS_CFLAGS) \ - -DGNOMELOCALEDIR="\"$(datadir)/locale\"" \ - -DGNOMECC_UI_DIR="\"$(uidir)\"" - -gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor -uninstall-hook: update-icon-cache -install-data-hook: update-icon-cache -update-icon-cache: - @-if test -z "$(DESTDIR)"; then \ - echo "Updating Gtk icon cache."; \ - $(gtk_update_icon_cache); \ - else \ - echo "*** Icon cache not updated. After install, run this:"; \ - echo "*** $(gtk_update_icon_cache)"; \ - fi - -CLEANFILES = $(GNOMECC_CAPPLETS_CLEANFILES) $(desktop_in_files) $(desktop_DATA) - --include $(top_srcdir)/git.mk diff --git a/panels/proxy/cc-proxy-panel.c b/panels/proxy/cc-proxy-panel.c deleted file mode 100644 index 079743e69..000000000 --- a/panels/proxy/cc-proxy-panel.c +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright (C) 2010 Intel, Inc - * Copyright (C) 2002 Sun Microsystems Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * Author: Thomas Wood - * Mark McLoughlin - * - */ - -#include "cc-proxy-panel.h" - -G_DEFINE_DYNAMIC_TYPE (CcProxyPanel, cc_proxy_panel, CC_TYPE_PANEL) - -#define PROXY_PANEL_PRIVATE(o) \ - (G_TYPE_INSTANCE_GET_PRIVATE ((o), CC_TYPE_PROXY_PANEL, CcProxyPanelPrivate)) - -struct _CcProxyPanelPrivate -{ - GtkBuilder *builder; -}; - - -static void -cc_proxy_panel_get_property (GObject *object, - guint property_id, - GValue *value, - GParamSpec *pspec) -{ - switch (property_id) - { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - } -} - -static void -cc_proxy_panel_set_property (GObject *object, - guint property_id, - const GValue *value, - GParamSpec *pspec) -{ - switch (property_id) - { - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - } -} - -static void -cc_proxy_panel_dispose (GObject *object) -{ - CcProxyPanelPrivate *priv = CC_PROXY_PANEL (object)->priv; - - if (!priv->builder) - { - g_object_unref (priv->builder); - priv->builder = NULL; - } - - G_OBJECT_CLASS (cc_proxy_panel_parent_class)->dispose (object); -} - -static void -cc_proxy_panel_finalize (GObject *object) -{ - G_OBJECT_CLASS (cc_proxy_panel_parent_class)->finalize (object); -} - -static void -cc_proxy_panel_class_init (CcProxyPanelClass *klass) -{ - GObjectClass *object_class = G_OBJECT_CLASS (klass); - - g_type_class_add_private (klass, sizeof (CcProxyPanelPrivate)); - - object_class->get_property = cc_proxy_panel_get_property; - object_class->set_property = cc_proxy_panel_set_property; - object_class->dispose = cc_proxy_panel_dispose; - object_class->finalize = cc_proxy_panel_finalize; -} - -static void -cc_proxy_panel_class_finalize (CcProxyPanelClass *klass) -{ -} - -static void -cc_proxy_panel_init (CcProxyPanel *self) -{ - CcProxyPanelPrivate *priv; - GtkWidget *widget; - - priv = self->priv = PROXY_PANEL_PRIVATE (self); - - - priv->builder = gtk_builder_new (); - - gnome_network_properties_init (priv->builder); - - widget = (GtkWidget *) gtk_builder_get_object (priv->builder, - "network-panel"); - gtk_widget_reparent (widget, GTK_WIDGET (self)); -} - -void -cc_proxy_panel_register (GIOModule *module) -{ - cc_proxy_panel_register_type (G_TYPE_MODULE (module)); - g_io_extension_point_implement (CC_SHELL_PANEL_EXTENSION_POINT, - CC_TYPE_PROXY_PANEL, - "proxy", 0); -} - diff --git a/panels/proxy/cc-proxy-panel.h b/panels/proxy/cc-proxy-panel.h deleted file mode 100644 index 19b526a9b..000000000 --- a/panels/proxy/cc-proxy-panel.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2010 Intel, Inc - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * Author: Thomas Wood - * - */ - - -#ifndef _CC_PROXY_PANEL_H -#define _CC_PROXY_PANEL_H - -#include - -G_BEGIN_DECLS - -#define CC_TYPE_PROXY_PANEL cc_proxy_panel_get_type() - -#define CC_PROXY_PANEL(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ - CC_TYPE_PROXY_PANEL, CcProxyPanel)) - -#define CC_PROXY_PANEL_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST ((klass), \ - CC_TYPE_PROXY_PANEL, CcProxyPanelClass)) - -#define CC_IS_PROXY_PANEL(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ - CC_TYPE_PROXY_PANEL)) - -#define CC_IS_PROXY_PANEL_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE ((klass), \ - CC_TYPE_PROXY_PANEL)) - -#define CC_PROXY_PANEL_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), \ - CC_TYPE_PROXY_PANEL, CcProxyPanelClass)) - -typedef struct _CcProxyPanel CcProxyPanel; -typedef struct _CcProxyPanelClass CcProxyPanelClass; -typedef struct _CcProxyPanelPrivate CcProxyPanelPrivate; - -struct _CcProxyPanel -{ - CcPanel parent; - - CcProxyPanelPrivate *priv; -}; - -struct _CcProxyPanelClass -{ - CcPanelClass parent_class; -}; - -GType cc_proxy_panel_get_type (void) G_GNUC_CONST; - -void cc_proxy_panel_register (GIOModule *module); - - -int gnome_network_properties_init (GtkBuilder *builder); - -G_END_DECLS - -#endif /* _CC_PROXY_PANEL_H */ diff --git a/panels/proxy/gnome-proxy-panel.desktop.in.in b/panels/proxy/gnome-proxy-panel.desktop.in.in deleted file mode 100644 index 9f12f53ba..000000000 --- a/panels/proxy/gnome-proxy-panel.desktop.in.in +++ /dev/null @@ -1,17 +0,0 @@ -[Desktop Entry] -_Name=Network Proxy -_Comment=Set your network proxy preferences -Exec=gnome-control-center proxy -Icon=gnome-network-properties -Terminal=false -Type=Application -StartupNotify=true -Categories=GNOME;GTK;Settings;X-GNOME-NetworkSettings;X-GNOME-Settings-Panel; -OnlyShowIn=GNOME; -X-GNOME-Bugzilla-Bugzilla=GNOME -X-GNOME-Bugzilla-Product=gnome-control-center -X-GNOME-Bugzilla-Component=proxy preferences -X-GNOME-Bugzilla-Version=@VERSION@ -X-GNOME-Settings-Panel=proxy -# Translators: those are keywords for the proxy control-center panel -_X-GNOME-Keywords=Web;Location; diff --git a/panels/proxy/gnome-proxy-properties.c b/panels/proxy/gnome-proxy-properties.c deleted file mode 100644 index 074616fa1..000000000 --- a/panels/proxy/gnome-proxy-properties.c +++ /dev/null @@ -1,1306 +0,0 @@ -/* gnome-network-properties.c: network preferences capplet - * - * Copyright (C) 2002 Sun Microsystems Inc. - * - * Written by: Mark McLoughlin - * Rodrigo Moya - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. - */ - -#ifdef HAVE_CONFIG_H -# include -#endif - -#include "cc-proxy-panel.h" - -#include -#include -#include -#include -#include // FIXME: still needed for locations - -enum ProxyMode -{ - PROXYMODE_NONE, - PROXYMODE_MANUAL, - PROXYMODE_AUTO -}; - -static GEnumValue proxytype_values[] = { - { PROXYMODE_NONE, "PROXYMODE_NONE", "none"}, - { PROXYMODE_MANUAL, "PROXYMODE_MANUAL", "manual"}, - { PROXYMODE_AUTO, "PROXYMODE_AUTO", "auto"}, - { 0, NULL, NULL } -}; - -enum { - COL_NAME, - COL_STYLE -}; - -#define OLD_SECURE_PROXY_HOST_KEY "/system/proxy/old_secure_host" -#define OLD_SECURE_PROXY_PORT_KEY "/system/proxy/old_secure_port" -#define OLD_FTP_PROXY_HOST_KEY "/system/proxy/old_ftp_host" -#define OLD_FTP_PROXY_PORT_KEY "/system/proxy/old_ftp_port" -#define OLD_SOCKS_PROXY_HOST_KEY "/system/proxy/old_socks_host" -#define OLD_SOCKS_PROXY_PORT_KEY "/system/proxy/old_socks_port" - -#define LOCATION_DIR "/apps/control-center/network" -#define CURRENT_LOCATION "/apps/control-center/network/current_location" - -#define GNOMECC_GNP_UI_FILE (GNOMECC_UI_DIR "/gnome-proxy-properties.ui") - -static GtkWidget *details_dialog = NULL; -static GPtrArray *ignore_hosts = NULL; -static GtkTreeModel *model = NULL; -static GSettings *proxy_settings = NULL; -static GSettings *http_proxy_settings = NULL; -static GSettings *https_proxy_settings = NULL; -static GSettings *ftp_proxy_settings = NULL; -static GSettings *socks_proxy_settings = NULL; - -static GtkTreeModel * -create_listmodel(void) -{ - GtkListStore *store; - - store = gtk_list_store_new(1, G_TYPE_STRING); - - return GTK_TREE_MODEL(store); -} - -static GtkTreeModel * -populate_listmodel (GtkListStore *store, GPtrArray *list) -{ - GtkTreeIter iter; - gint i; - - gtk_list_store_clear (store); - - if (list != NULL) { - for (i = 0; i < list->len; i++) { - gtk_list_store_append (store, &iter); - gtk_list_store_set (store, &iter, 0, (char *) g_ptr_array_index (list, i), -1); - } - } - - return GTK_TREE_MODEL (store); -} - -static GtkWidget * -config_treeview(GtkTreeView *tree, GtkTreeModel *model) -{ - GtkCellRenderer *renderer; - - renderer = gtk_cell_renderer_text_new(); - gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW(tree), - -1, "Hosts", renderer, - "text", 0, NULL); - - gtk_tree_view_set_model(GTK_TREE_VIEW(tree), model); - - return GTK_WIDGET(tree); -} - -static GtkWidget* -_gtk_builder_get_widget (GtkBuilder *builder, const gchar *name) -{ - return GTK_WIDGET (gtk_builder_get_object (builder, name)); -} - - -static void -cb_add_url (GtkButton *button, gpointer data) -{ - GtkBuilder *builder = GTK_BUILDER (data); - gchar *new_url = NULL; - - new_url = g_strdup (gtk_entry_get_text (GTK_ENTRY (gtk_builder_get_object (builder, "entry_url")))); - if (strlen (new_url) == 0) - return; - - g_ptr_array_add (ignore_hosts, new_url); - populate_listmodel (GTK_LIST_STORE (model), ignore_hosts); - gtk_entry_set_text (GTK_ENTRY (gtk_builder_get_object (builder, - "entry_url")), ""); - - g_settings_set_strv (proxy_settings, "ignore-hosts", (const gchar **) ignore_hosts->pdata); -} - -static void -cb_remove_url (GtkButton *button, gpointer data) -{ - GtkBuilder *builder = GTK_BUILDER (data); - GtkTreeSelection *selection; - GtkTreeIter iter; - - selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (gtk_builder_get_object (builder, "treeview_ignore_host"))); - if (gtk_tree_selection_get_selected(selection, &model, &iter)) - { - gchar *url; - guint i; - - gtk_tree_model_get (model, &iter, 0, &url, -1); - - for (i = 0; i < ignore_hosts->len; i++) { - if (g_str_equal (url, (char *) g_ptr_array_index (ignore_hosts, i))) { - g_ptr_array_remove_index (ignore_hosts, i); - break; - } - } - - g_free (url); - populate_listmodel (GTK_LIST_STORE(model), ignore_hosts); - - g_settings_set_strv (proxy_settings, "ignore-hosts", (const gchar **) ignore_hosts->pdata); - } -} - -static void -cb_dialog_response (GtkDialog *dialog, gint response_id) -{ - /* if (response_id == GTK_RESPONSE_HELP) - capplet_help (GTK_WINDOW (dialog), - "goscustdesk-50"); - else */ if (response_id == GTK_RESPONSE_CLOSE || response_id == GTK_RESPONSE_DELETE_EVENT) - { - if (ignore_hosts != NULL) - g_ptr_array_free (ignore_hosts, TRUE); - - gtk_main_quit (); - } -} - -static void -cb_details_dialog_response (GtkDialog *dialog, gint response_id) -{ - if (response_id == GTK_RESPONSE_HELP) { - /* capplet_help (GTK_WINDOW (dialog), - "goscustdesk-50"); */ - } else { - gtk_widget_destroy (GTK_WIDGET (dialog)); - details_dialog = NULL; - } -} - -static void -cb_use_auth_toggled (GtkToggleButton *toggle, - GtkWidget *table) -{ - gtk_widget_set_sensitive (table, gtk_toggle_button_get_active (toggle)); -} - -static void -cb_http_details_button_clicked (GtkWidget *button, - GtkWidget *parent) -{ - GtkBuilder *builder; - gchar *builder_widgets[] = { "details_dialog", NULL }; - GError *error = NULL; - GtkWidget *widget; - - if (details_dialog != NULL) { - gtk_window_present (GTK_WINDOW (details_dialog)); - gtk_widget_grab_focus (details_dialog); - return; - } - - builder = gtk_builder_new (); - if (gtk_builder_add_objects_from_file (builder, GNOMECC_GNP_UI_FILE, - builder_widgets, &error) == 0) { - g_warning ("Could not load details dialog: %s", error->message); - g_error_free (error); - g_object_unref (builder); - return; - } - - details_dialog = widget = _gtk_builder_get_widget (builder, - "details_dialog"); - - gtk_window_set_transient_for (GTK_WINDOW (widget), GTK_WINDOW (gtk_widget_get_toplevel (parent))); - - g_signal_connect (gtk_builder_get_object (builder, "use_auth_checkbutton"), - "toggled", - G_CALLBACK (cb_use_auth_toggled), - _gtk_builder_get_widget (builder, "auth_table")); - - g_settings_bind (http_proxy_settings, "use-authentication", - _gtk_builder_get_widget (builder, "use_auth_checkbutton"), "active", - G_SETTINGS_BIND_DEFAULT); - g_settings_bind (http_proxy_settings, "authentication-user", - _gtk_builder_get_widget (builder, "username_entry"), "text", - G_SETTINGS_BIND_DEFAULT); - g_settings_bind (http_proxy_settings, "authentication-password", - _gtk_builder_get_widget (builder, "password_entry"), "text", - G_SETTINGS_BIND_DEFAULT); - - g_signal_connect (widget, "response", - G_CALLBACK (cb_details_dialog_response), NULL); - - /* capplet_set_icon (widget, "gnome-network-properties"); */ - - gtk_widget_show_all (widget); -} - -/* static gchar * */ -/* copy_location_create_key (const gchar *from, const gchar *what) */ -/* { */ -/* if (from[0] == '\0') return g_strdup (what); */ -/* else return g_strconcat (from, what + strlen ("/system"), NULL); */ -/* } */ - -/* static void */ -/* copy_location (const gchar *from, const gchar *to, GConfClient *client) */ -/* { */ -/* int ti; */ -/* gboolean tb; */ -/* GSList *tl; */ -/* gchar *tstr, *dest, *src; */ - -/* if (from[0] != '\0' && !gconf_client_dir_exists (client, from, NULL)) */ -/* return; */ - -/* /\* USE_PROXY *\/ */ -/* dest = copy_location_create_key (to, USE_PROXY_KEY); */ -/* src = copy_location_create_key (from, USE_PROXY_KEY); */ - -/* tb = gconf_client_get_bool (client, src, NULL); */ -/* gconf_client_set_bool (client, dest, tb, NULL); */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* USE_SAME_PROXY *\/ */ -/* dest = copy_location_create_key (to, USE_SAME_PROXY_KEY); */ -/* src = copy_location_create_key (from, USE_SAME_PROXY_KEY); */ - -/* tb = gconf_client_get_bool (client, src, NULL); */ -/* gconf_client_set_bool (client, dest, tb, NULL); */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* HTTP_PROXY_HOST *\/ */ -/* dest = copy_location_create_key (to, HTTP_PROXY_HOST_KEY); */ -/* src = copy_location_create_key (from, HTTP_PROXY_HOST_KEY); */ - -/* tstr = gconf_client_get_string (client, src, NULL); */ -/* if (tstr != NULL) */ -/* { */ -/* gconf_client_set_string (client, dest, tstr, NULL); */ -/* g_free (tstr); */ -/* } */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* HTTP_PROXY_PORT *\/ */ -/* dest = copy_location_create_key (to, HTTP_PROXY_PORT_KEY); */ -/* src = copy_location_create_key (from, HTTP_PROXY_PORT_KEY); */ - -/* ti = gconf_client_get_int (client, src, NULL); */ -/* gconf_client_set_int (client, dest, ti, NULL); */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* HTTP_USE_AUTH *\/ */ -/* dest = copy_location_create_key (to, HTTP_USE_AUTH_KEY); */ -/* src = copy_location_create_key (from, HTTP_USE_AUTH_KEY); */ - -/* tb = gconf_client_get_bool (client, src, NULL); */ -/* gconf_client_set_bool (client, dest, tb, NULL); */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* HTTP_AUTH_USER *\/ */ -/* dest = copy_location_create_key (to, HTTP_AUTH_USER_KEY); */ -/* src = copy_location_create_key (from, HTTP_AUTH_USER_KEY); */ - -/* tstr = gconf_client_get_string (client, src, NULL); */ -/* if (tstr != NULL) */ -/* { */ -/* gconf_client_set_string (client, dest, tstr, NULL); */ -/* g_free (tstr); */ -/* } */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* HTTP_AUTH_PASSWD *\/ */ -/* dest = copy_location_create_key (to, HTTP_AUTH_PASSWD_KEY); */ -/* src = copy_location_create_key (from, HTTP_AUTH_PASSWD_KEY); */ - -/* tstr = gconf_client_get_string (client, src, NULL); */ -/* if (tstr != NULL) */ -/* { */ -/* gconf_client_set_string (client, dest, tstr, NULL); */ -/* g_free (tstr); */ -/* } */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* IGNORE_HOSTS *\/ */ -/* dest = copy_location_create_key (to, IGNORE_HOSTS_KEY); */ -/* src = copy_location_create_key (from, IGNORE_HOSTS_KEY); */ - -/* tl = gconf_client_get_list (client, src, GCONF_VALUE_STRING, NULL); */ -/* gconf_client_set_list (client, dest, GCONF_VALUE_STRING, tl, NULL); */ -/* g_slist_foreach (tl, (GFunc) g_free, NULL); */ -/* g_slist_free (tl); */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* PROXY_MODE *\/ */ -/* dest = copy_location_create_key (to, PROXY_MODE_KEY); */ -/* src = copy_location_create_key (from, PROXY_MODE_KEY); */ - -/* tstr = gconf_client_get_string (client, src, NULL); */ -/* if (tstr != NULL) */ -/* { */ -/* gconf_client_set_string (client, dest, tstr, NULL); */ -/* g_free (tstr); */ -/* } */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* SECURE_PROXY_HOST *\/ */ -/* dest = copy_location_create_key (to, SECURE_PROXY_HOST_KEY); */ -/* src = copy_location_create_key (from, SECURE_PROXY_HOST_KEY); */ - -/* tstr = gconf_client_get_string (client, src, NULL); */ -/* if (tstr != NULL) */ -/* { */ -/* gconf_client_set_string (client, dest, tstr, NULL); */ -/* g_free (tstr); */ -/* } */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* OLD_SECURE_PROXY_HOST *\/ */ -/* dest = copy_location_create_key (to, OLD_SECURE_PROXY_HOST_KEY); */ -/* src = copy_location_create_key (from, OLD_SECURE_PROXY_HOST_KEY); */ - -/* tstr = gconf_client_get_string (client, src, NULL); */ -/* if (tstr != NULL) */ -/* { */ -/* gconf_client_set_string (client, dest, tstr, NULL); */ -/* g_free (tstr); */ -/* } */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* SECURE_PROXY_PORT *\/ */ -/* dest = copy_location_create_key (to, SECURE_PROXY_PORT_KEY); */ -/* src = copy_location_create_key (from, SECURE_PROXY_PORT_KEY); */ - -/* ti = gconf_client_get_int (client, src, NULL); */ -/* gconf_client_set_int (client, dest, ti, NULL); */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* OLD_SECURE_PROXY_PORT *\/ */ -/* dest = copy_location_create_key (to, OLD_SECURE_PROXY_PORT_KEY); */ -/* src = copy_location_create_key (from, OLD_SECURE_PROXY_PORT_KEY); */ - -/* ti = gconf_client_get_int (client, src, NULL); */ -/* gconf_client_set_int (client, dest, ti, NULL); */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* FTP_PROXY_HOST *\/ */ -/* dest = copy_location_create_key (to, FTP_PROXY_HOST_KEY); */ -/* src = copy_location_create_key (from, FTP_PROXY_HOST_KEY); */ - -/* tstr = gconf_client_get_string (client, src, NULL); */ -/* if (tstr != NULL) */ -/* { */ -/* gconf_client_set_string (client, dest, tstr, NULL); */ -/* g_free (tstr); */ -/* } */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* OLD_FTP_PROXY_HOST *\/ */ -/* dest = copy_location_create_key (to, OLD_FTP_PROXY_HOST_KEY); */ -/* src = copy_location_create_key (from, OLD_FTP_PROXY_HOST_KEY); */ - -/* tstr = gconf_client_get_string (client, src, NULL); */ -/* if (tstr != NULL) */ -/* { */ -/* gconf_client_set_string (client, dest, tstr, NULL); */ -/* g_free (tstr); */ -/* } */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* FTP_PROXY_PORT *\/ */ -/* dest = copy_location_create_key (to, FTP_PROXY_PORT_KEY); */ -/* src = copy_location_create_key (from, FTP_PROXY_PORT_KEY); */ - -/* ti = gconf_client_get_int (client, src, NULL); */ -/* gconf_client_set_int (client, dest, ti, NULL); */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* OLD_FTP_PROXY_PORT *\/ */ -/* dest = copy_location_create_key (to, OLD_FTP_PROXY_PORT_KEY); */ -/* src = copy_location_create_key (from, OLD_FTP_PROXY_PORT_KEY); */ - -/* ti = gconf_client_get_int (client, src, NULL); */ -/* gconf_client_set_int (client, dest, ti, NULL); */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* SOCKS_PROXY_HOST *\/ */ -/* dest = copy_location_create_key (to, SOCKS_PROXY_HOST_KEY); */ -/* src = copy_location_create_key (from, SOCKS_PROXY_HOST_KEY); */ - -/* tstr = gconf_client_get_string (client, src, NULL); */ -/* if (tstr != NULL) */ -/* { */ -/* gconf_client_set_string (client, dest, tstr, NULL); */ -/* g_free (tstr); */ -/* } */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* OLD_SOCKS_PROXY_HOST *\/ */ -/* dest = copy_location_create_key (to, OLD_SOCKS_PROXY_HOST_KEY); */ -/* src = copy_location_create_key (from, OLD_SOCKS_PROXY_HOST_KEY); */ - -/* tstr = gconf_client_get_string (client, src, NULL); */ -/* if (tstr != NULL) */ -/* { */ -/* gconf_client_set_string (client, dest, tstr, NULL); */ -/* g_free (tstr); */ -/* } */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* SOCKS_PROXY_PORT *\/ */ -/* dest = copy_location_create_key (to, SOCKS_PROXY_PORT_KEY); */ -/* src = copy_location_create_key (from, SOCKS_PROXY_PORT_KEY); */ - -/* ti = gconf_client_get_int (client, src, NULL); */ -/* gconf_client_set_int (client, dest, ti, NULL); */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* OLD_SOCKS_PROXY_PORT *\/ */ -/* dest = copy_location_create_key (to, OLD_SOCKS_PROXY_PORT_KEY); */ -/* src = copy_location_create_key (from, OLD_SOCKS_PROXY_PORT_KEY); */ - -/* ti = gconf_client_get_int (client, src, NULL); */ -/* gconf_client_set_int (client, dest, ti, NULL); */ - -/* g_free (dest); */ -/* g_free (src); */ - -/* /\* PROXY_AUTOCONFIG_URL *\/ */ -/* dest = copy_location_create_key (to, PROXY_AUTOCONFIG_URL_KEY); */ -/* src = copy_location_create_key (from, PROXY_AUTOCONFIG_URL_KEY); */ - -/* tstr = gconf_client_get_string (client, src, NULL); */ -/* if (tstr != NULL) */ -/* { */ -/* gconf_client_set_string (client, dest, tstr, NULL); */ -/* g_free (tstr); */ -/* } */ - -/* g_free (dest); */ -/* g_free (src); */ -/* } */ - -static gchar * -get_current_location (GConfClient *client) -{ - gchar *result; - - result = gconf_client_get_string (client, CURRENT_LOCATION, NULL); - - if (result == NULL || result[0] == '\0') - { - g_free (result); - result = g_strdup (_("Default")); - } - - return result; -} - -static gboolean -location_combo_separator (GtkTreeModel *model, - GtkTreeIter *iter, - gpointer data) -{ - gchar *name; - gboolean ret; - - gtk_tree_model_get (model, iter, COL_NAME, &name, -1); - - ret = name == NULL || name[0] == '\0'; - - g_free (name); - - return ret; -} - -static void -update_locations (GConfClient *client, - GtkBuilder *builder); - -static void -cb_location_changed (GtkWidget *location, - GtkBuilder *builder); - -static void -cb_current_location (GConfClient *client, - guint cnxn_id, - GConfEntry *entry, - GtkBuilder *builder) -{ - GConfValue *value; - const gchar *newval; - - value = gconf_entry_get_value (entry); - if (value == NULL) - return; - - newval = gconf_value_get_string (value); - if (newval == NULL) - return; - - /* prevent the current settings from being saved by blocking - * the signal handler */ - g_signal_handlers_block_by_func (gtk_builder_get_object (builder, "location_combobox"), - cb_location_changed, builder); - update_locations (client, builder); - g_signal_handlers_unblock_by_func (gtk_builder_get_object (builder, "location_combobox"), - cb_location_changed, builder); -} - -static void -update_locations (GConfClient *client, - GtkBuilder *builder) -{ - int i, select; - gchar *current; - GtkComboBox *location = GTK_COMBO_BOX (gtk_builder_get_object (builder, "location_combobox")); - GSList *list = gconf_client_all_dirs (client, LOCATION_DIR, NULL); - GtkTreeIter titer; - GtkListStore *store; - GSList *iter, *last; - - store = GTK_LIST_STORE (gtk_combo_box_get_model (location)); - gtk_list_store_clear (store); - - current = get_current_location (client); - - list = g_slist_append (list, g_strconcat (LOCATION_DIR"/", current, NULL)); - list = g_slist_sort (list, (GCompareFunc) strcmp); - - select = -1; - - for (i = 0, iter = list, last = NULL; iter != NULL; last = iter, iter = g_slist_next (iter), ++i) - { - if (last == NULL || strcmp (last->data, iter->data) != 0) - { - gchar *locp, *key_name; - - locp = (char *) (iter->data) + strlen (LOCATION_DIR) + 1; - key_name = gconf_unescape_key (locp, -1); - - gtk_list_store_append (store, &titer); - gtk_list_store_set (store, &titer, - COL_NAME, key_name, - COL_STYLE, PANGO_STYLE_NORMAL, -1); - - g_free (key_name); - - if (strcmp (locp, current) == 0) - select = i; - } - } - if (select == -1) - { - gtk_list_store_append (store, &titer); - gtk_list_store_set (store, &titer, - COL_NAME , current, - COL_STYLE, PANGO_STYLE_NORMAL, -1); - select = i++; - } - gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, - "delete_button"), - i > 1); - - gtk_list_store_append (store, &titer); - gtk_list_store_set (store, &titer, - COL_NAME, NULL, - COL_STYLE, PANGO_STYLE_NORMAL, -1); - - gtk_list_store_append (store, &titer); - gtk_list_store_set (store, &titer, - COL_NAME, _("New Location..."), - COL_STYLE, PANGO_STYLE_ITALIC, -1); - - gtk_combo_box_set_row_separator_func (location, location_combo_separator, NULL, NULL); - gtk_combo_box_set_active (location, select); - g_free (current); - g_slist_foreach (list, (GFunc) gconf_entry_free, NULL); - g_slist_free (list); -} - -static void -cb_location_new_text_changed (GtkEntry *entry, GtkBuilder *builder) -{ - gboolean exists; - gchar *current, *esc, *key; - const gchar *name; - GConfClient *client; - - client = gconf_client_get_default (); - - name = gtk_entry_get_text (entry); - if (name != NULL && name[0] != '\0') - { - esc = gconf_escape_key (name, -1); - - key = g_strconcat (LOCATION_DIR "/", esc, NULL); - g_free (esc); - - current = get_current_location (client); - - exists = (strcmp (current, name) == 0) || - gconf_client_dir_exists (client, key, NULL); - g_free (key); - } else exists = FALSE; - - g_object_unref (client); - - if (exists) - gtk_widget_show (_gtk_builder_get_widget (builder, - "error_label")); - else - gtk_widget_hide (_gtk_builder_get_widget (builder, - "error_label")); - - gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, - "new_location"), - !exists); -} - -static void -location_new (GtkBuilder *capplet_builder, GtkWidget *parent) -{ - GtkBuilder *builder; - GError *error = NULL; - gchar *builder_widgets[] = { "location_new_dialog", - "new_location_btn_img", NULL }; - GtkWidget *askdialog; - const gchar *name; - int response; - GConfClient *client; - - client = gconf_client_get_default (); - - builder = gtk_builder_new (); - if (gtk_builder_add_objects_from_file (builder, GNOMECC_GNP_UI_FILE, - builder_widgets, &error) == 0) { - g_warning ("Could not load location dialog: %s", - error->message); - g_error_free (error); - g_object_unref (builder); - return; - } - - askdialog = _gtk_builder_get_widget (builder, "location_new_dialog"); - gtk_window_set_transient_for (GTK_WINDOW (askdialog), GTK_WINDOW (parent)); - g_signal_connect (askdialog, "response", - G_CALLBACK (gtk_widget_hide), NULL); - g_signal_connect (gtk_builder_get_object (builder, "text"), "changed", - G_CALLBACK (cb_location_new_text_changed), builder); - response = gtk_dialog_run (GTK_DIALOG (askdialog)); - name = gtk_entry_get_text (GTK_ENTRY (gtk_builder_get_object (builder, "text"))); - g_object_unref (builder); - - if (response == GTK_RESPONSE_OK && name[0] != '\0') - { - gboolean exists; - gchar *current, *esc, *key; - esc = gconf_escape_key (name, -1); - key = g_strconcat (LOCATION_DIR "/", esc, NULL); - g_free (esc); - - current = get_current_location (client); - - exists = (strcmp (current, name) == 0) || - gconf_client_dir_exists (client, key, NULL); - - g_free (key); - - if (!exists) - { - esc = gconf_escape_key (current, -1); - g_free (current); - key = g_strconcat (LOCATION_DIR "/", esc, NULL); - g_free (esc); - - /* FIXME: need to enable this when GSettingsList is ready copy_location ("", key, client); */ - g_free (key); - - gconf_client_set_string (client, CURRENT_LOCATION, name, NULL); - update_locations (client, capplet_builder); - } - else - { - GtkWidget *err = gtk_message_dialog_new (GTK_WINDOW (askdialog), - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_ERROR, - GTK_BUTTONS_CLOSE, - _("Location already exists")); - gtk_dialog_run (GTK_DIALOG (err)); - gtk_widget_destroy (err); - - /* switch back to the currently selected location */ - gconf_client_notify (client, CURRENT_LOCATION); - } - } - else - { - /* switch back to the currently selected location */ - gconf_client_notify (client, CURRENT_LOCATION); - } - gtk_widget_destroy (askdialog); - g_object_unref (client); -} - -static char * -get_active_location (GtkComboBox *box) -{ - GtkTreeIter iter; - GtkTreeModel *model; - char *location; - - model = gtk_combo_box_get_model (box); - if (gtk_combo_box_get_active_iter (box, &iter) == FALSE) - return NULL; - gtk_tree_model_get (model, &iter, COL_NAME, &location, -1); - - return location; -} - -static void -cb_location_changed (GtkWidget *location, - GtkBuilder *builder) -{ - /* gchar *current; */ - /* gchar *name = get_active_location (GTK_COMBO_BOX (location)); */ - - /* if (name == NULL) */ - /* return; */ - - /* current = get_current_location (client); */ - - /* if (strcmp (current, name) != 0) */ - /* { */ - /* if (strcmp (name, _("New Location...")) == 0) */ - /* { */ - /* location_new (builder, */ - /* gtk_widget_get_toplevel (_gtk_builder_get_widget (builder, "network-panel"))); */ - /* } */ - /* else */ - /* { */ - /* gchar *key, *esc; */ - - /* /\* save current settings *\/ */ - /* esc = gconf_escape_key (current, -1); */ - /* key = g_strconcat (LOCATION_DIR "/", esc, NULL); */ - /* g_free (esc); */ - - /* copy_location ("", key, client); */ - /* g_free (key); */ - - /* /\* load settings *\/ */ - /* esc = gconf_escape_key (name, -1); */ - /* key = g_strconcat (LOCATION_DIR "/", esc, NULL); */ - /* g_free (esc); */ - - /* copy_location (key, "", client); */ - /* gconf_client_recursive_unset (client, key, */ - /* GCONF_UNSET_INCLUDING_SCHEMA_NAMES, NULL); */ - /* g_free (key); */ - - /* gconf_client_set_string (client, CURRENT_LOCATION, name, NULL); */ - /* } */ - /* } */ - - /* g_free (current); */ - /* g_free (name); */ - /* g_object_unref (client); */ -} - -static void -cb_delete_button_clicked (GtkWidget *button, - GtkBuilder *builder) -{ - GConfClient *client; - GtkComboBox *box = GTK_COMBO_BOX (gtk_builder_get_object (builder, - "location_combobox")); - int active = gtk_combo_box_get_active (box); - gchar *current, *key, *esc; - GtkTreeIter iter; - - /* prevent the current settings from being saved by blocking - * the signal handler */ - g_signal_handlers_block_by_func (box, cb_location_changed, builder); - if (gtk_combo_box_get_active_iter (box, &iter) != FALSE) { - gtk_list_store_remove (GTK_LIST_STORE (gtk_combo_box_get_model (box)), - &iter); - } - gtk_combo_box_set_active (box, (active == 0) ? 1 : 0); - g_signal_handlers_unblock_by_func (box, cb_location_changed, builder); - - /* set the new location */ - client = gconf_client_get_default (); - current = get_active_location (GTK_COMBO_BOX (box)); - - esc = gconf_escape_key (current, -1); - key = g_strconcat (LOCATION_DIR "/", esc, NULL); - g_free (esc); - - /* copy_location (key, "", client); */ - gconf_client_recursive_unset (client, key, - GCONF_UNSET_INCLUDING_SCHEMA_NAMES, NULL); - gconf_client_suggest_sync (client, NULL); - g_free (key); - - gconf_client_set_string (client, CURRENT_LOCATION, current, NULL); - - g_free (current); - - g_object_unref (client); -} - -/* When using the same proxy for all protocols, updates every host_entry - * as the user types along */ -static void -synchronize_hosts (GtkEntry *widget, - GtkBuilder *builder) -{ - const gchar *hosts[] = { - "secure_host_entry", - "ftp_host_entry", - "socks_host_entry", - NULL }; - const gchar **host, *http_host; - - http_host = gtk_entry_get_text (widget); - - for (host = hosts; *host != NULL; ++host) - { - widget = GTK_ENTRY (gtk_builder_get_object (builder, *host)); - gtk_entry_set_text (widget, http_host); - } -} - -/* When using the same proxy for all protocols, copies the value of the - * http port to the other spinbuttons */ -static void -synchronize_ports (GtkSpinButton *widget, - GtkBuilder *builder) -{ - const gchar *ports[] = { - "secure_port_spinbutton", - "ftp_port_spinbutton", - "socks_port_spinbutton", - NULL }; - gdouble http_port; - const gchar **port; - - http_port = gtk_spin_button_get_value (widget); - - for (port = ports; *port != NULL; ++port) - { - widget = GTK_SPIN_BUTTON ( - gtk_builder_get_object (builder, *port)); - gtk_spin_button_set_value (widget, http_port); - } -} - -/* Synchronizes all hosts and ports */ -static void -synchronize_entries (GtkBuilder *builder) -{ - g_signal_connect ( - gtk_builder_get_object (builder, "http_host_entry"), - "changed", - G_CALLBACK (synchronize_hosts), - builder); - g_signal_connect ( - gtk_builder_get_object (builder, "http_port_spinbutton"), - "value-changed", - G_CALLBACK (synchronize_ports), - builder); -} - -/* Unsynchronize hosts and ports */ -static void -unsynchronize_entries (GtkBuilder *builder) -{ - g_signal_handlers_disconnect_by_func ( - gtk_builder_get_object (builder, "http_host_entry"), - synchronize_hosts, - builder); - g_signal_handlers_disconnect_by_func ( - gtk_builder_get_object (builder, "http_port_spinbutton"), - synchronize_ports, - builder); -} - -static void -cb_use_same_proxy_checkbutton_clicked (GtkWidget *checkbutton, - GtkBuilder *builder) -{ - gboolean same_proxy; - gchar *http_proxy; - gint http_port; - - same_proxy = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (checkbutton)); - - http_proxy = g_settings_get_string (http_proxy_settings, "host"); - http_port = g_settings_get_int (http_proxy_settings, "port"); - - if (same_proxy) { - /* Set the new values */ - gtk_entry_set_text (GTK_ENTRY (gtk_builder_get_object (builder, "secure_host_entry")), http_proxy); - gtk_spin_button_set_value (GTK_SPIN_BUTTON (gtk_builder_get_object (builder, "secure_host_spinbutton")), (gdouble) http_port); - - gtk_entry_set_text (GTK_ENTRY (gtk_builder_get_object (builder, "ftp_host_entry")), http_proxy); - gtk_spin_button_set_value (GTK_SPIN_BUTTON (gtk_builder_get_object (builder, "ftp_host_spinbutton")), (gdouble) http_port); - - gtk_entry_set_text (GTK_ENTRY (gtk_builder_get_object (builder, "socks_host_entry")), http_proxy); - gtk_spin_button_set_value (GTK_SPIN_BUTTON (gtk_builder_get_object (builder, "socks_host_spinbutton")), (gdouble) http_port); - - /* Synchronize entries */ - synchronize_entries (builder); - } else { - /* Hosts and ports should not be synchronized any more */ - unsynchronize_entries (builder); - } - - /* Set the proxy entries insensitive if we are using the same proxy for all */ - gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, - "secure_host_entry"), - !same_proxy); - gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, - "secure_port_spinbutton"), - !same_proxy); - gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, - "ftp_host_entry"), - !same_proxy); - gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, - "ftp_port_spinbutton"), - !same_proxy); - gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, - "socks_host_entry"), - !same_proxy); - gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, - "socks_port_spinbutton"), - !same_proxy); -} - -static gchar * -get_hostname_from_uri (const gchar *uri) -{ - const gchar *start, *end; - gchar *host; - - if (uri == NULL) - return NULL; - - /* skip the scheme part */ - start = strchr (uri, ':'); - if (start == NULL) - return NULL; - - /* forward until after the last '/' */ - do { - ++start; - } while (*start == '/'); - - if (*start == '\0') - return NULL; - - /* maybe we have a port? */ - end = strchr (start, ':'); - if (end == NULL) - end = strchr (start, '/'); - - if (end != NULL) - host = g_strndup (start, end - start); - else - host = g_strdup (start); - - return host; -} - -static void -proxy_mode_radiobutton_clicked_cb (GtkWidget *widget, - GtkBuilder *builder) -{ - GSList *mode_group; - int mode; - - if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widget))) - return; - - mode_group = g_slist_copy (gtk_radio_button_get_group - (GTK_RADIO_BUTTON (gtk_builder_get_object (builder, "none_radiobutton")))); - mode_group = g_slist_reverse (mode_group); - mode = g_slist_index (mode_group, widget); - g_slist_free (mode_group); - - gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, "manual_box"), - mode == PROXYMODE_MANUAL); - gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, "same_proxy_checkbutton"), - mode == PROXYMODE_MANUAL); - gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, "auto_box"), - mode == PROXYMODE_AUTO); - - g_settings_set_string (proxy_settings, "mode", proxytype_values[mode].value_nick); - g_settings_set_boolean (http_proxy_settings, "enabled", - mode == PROXYMODE_AUTO || mode == PROXYMODE_MANUAL); -} - -static void -connect_sensitivity_signals (GtkBuilder *builder, GSList *mode_group) -{ - for (; mode_group != NULL; mode_group = mode_group->next) { - g_signal_connect (G_OBJECT (mode_group->data), "clicked", - G_CALLBACK(proxy_mode_radiobutton_clicked_cb), - builder); - } -} - -static void -proxy_settings_changed_cb (GSettings *settings, - const gchar *key, - gpointer user_data) -{ - if (g_str_equal (key, "ignore-hosts")) { - gchar **hosts; - guint i = 0; - - if (ignore_hosts != NULL) - g_ptr_array_free (ignore_hosts, TRUE); - ignore_hosts = g_ptr_array_new_with_free_func ((GDestroyNotify) g_free); - - hosts = g_settings_get_strv (proxy_settings, "ignore-hosts"); - while (hosts[i] != NULL) { - g_ptr_array_add (ignore_hosts, hosts[i]); - i++; - } - - populate_listmodel (GTK_LIST_STORE (model), ignore_hosts); - /* Note: not g_strfreev() so we don't have to dup the strings - * we put in the array in the loop above */ - g_free (hosts); - } -} - -static void -setup_dialog (GtkBuilder *builder) -{ - GSList *mode_group; - GType mode_type = 0; - GConfClient *client; - gint port_value; - GtkWidget *location_box, *same_proxy_toggle; - GtkCellRenderer *location_renderer; - GtkListStore *store; - - mode_type = g_type_from_name ("NetworkPreferencesProxyType"); - if (!mode_type) - mode_type = g_enum_register_static ("NetworkPreferencesProxyType", - proxytype_values); - - client = gconf_client_get_default (); - - /* Locations */ - location_box = _gtk_builder_get_widget (builder, "location_combobox"); - store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_INT); - gtk_combo_box_set_model (GTK_COMBO_BOX (location_box), GTK_TREE_MODEL (store)); - - update_locations (client, builder); - gconf_client_add_dir (client, LOCATION_DIR, GCONF_CLIENT_PRELOAD_ONELEVEL, NULL); - gconf_client_notify_add (client, CURRENT_LOCATION, (GConfClientNotifyFunc) cb_current_location, builder, NULL, NULL); - - g_signal_connect (location_box, "changed", G_CALLBACK (cb_location_changed), builder); - g_signal_connect (gtk_builder_get_object (builder, "delete_button"), "clicked", G_CALLBACK (cb_delete_button_clicked), builder); - - location_renderer = gtk_cell_renderer_text_new (); - gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (location_box), location_renderer, TRUE); - gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (location_box), - location_renderer, - "text", COL_NAME, - "style", COL_STYLE, NULL); - - /* Mode */ - mode_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (gtk_builder_get_object (builder, "none_radiobutton"))); - connect_sensitivity_signals (builder, mode_group); - - /* Use same proxy for all protocols */ - same_proxy_toggle = _gtk_builder_get_widget (builder, "same_proxy_checkbutton"); - g_settings_bind (proxy_settings, "use-same-proxy", - same_proxy_toggle, "active", - G_SETTINGS_BIND_DEFAULT); - g_signal_connect (same_proxy_toggle, - "toggled", - G_CALLBACK (cb_use_same_proxy_checkbutton_clicked), - builder); - - /* Http */ - port_value = g_settings_get_int (http_proxy_settings, "port"); - gtk_spin_button_set_value (GTK_SPIN_BUTTON (gtk_builder_get_object (builder, "http_port_spinbutton")), (gdouble) port_value); - - g_settings_bind (http_proxy_settings, "port", - gtk_builder_get_object (builder, "http_port_spinbutton"), "value", - G_SETTINGS_BIND_DEFAULT); - g_settings_bind (http_proxy_settings, "host", - _gtk_builder_get_widget (builder, "http_host_entry"), "text", - G_SETTINGS_BIND_DEFAULT); - - g_signal_connect (gtk_builder_get_object (builder, "details_button"), - "clicked", - G_CALLBACK (cb_http_details_button_clicked), - _gtk_builder_get_widget (builder, "network-panel")); - - /* Secure */ - port_value = g_settings_get_int (https_proxy_settings, "port"); - gtk_spin_button_set_value (GTK_SPIN_BUTTON (gtk_builder_get_object (builder, "secure_port_spinbutton")), (gdouble) port_value); - - g_settings_bind (https_proxy_settings, "host", - _gtk_builder_get_widget (builder, "secure_host_entry"), "text", - G_SETTINGS_BIND_DEFAULT); - g_settings_bind (https_proxy_settings, "port", - _gtk_builder_get_widget (builder, "secure_port_spinbutton"), "value", - G_SETTINGS_BIND_DEFAULT); - - /* Ftp */ - port_value = g_settings_get_int (ftp_proxy_settings, "port"); - gtk_spin_button_set_value (GTK_SPIN_BUTTON (gtk_builder_get_object (builder, "ftp_port_spinbutton")), (gdouble) port_value); - g_settings_bind (ftp_proxy_settings, "host", - _gtk_builder_get_widget (builder, "ftp_host_entry"), "text", - G_SETTINGS_BIND_DEFAULT); - g_settings_bind (ftp_proxy_settings, "port", - _gtk_builder_get_widget (builder, "ftp_port_spinbutton"), "value", - G_SETTINGS_BIND_DEFAULT); - - /* Socks */ - port_value = g_settings_get_int (socks_proxy_settings, "port"); - gtk_spin_button_set_value (GTK_SPIN_BUTTON (gtk_builder_get_object (builder, "socks_port_spinbutton")), (gdouble) port_value); - g_settings_bind (socks_proxy_settings, "host", - _gtk_builder_get_widget (builder, "socks_host_entry"), "text", - G_SETTINGS_BIND_DEFAULT); - g_settings_bind (socks_proxy_settings, "port", - _gtk_builder_get_widget (builder, "socks_port_spinbutton"), "value", - G_SETTINGS_BIND_DEFAULT); - - /* Set the proxy entries insensitive if we are using the same proxy for all, - and make sure they are all synchronized */ - if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (same_proxy_toggle))) { - gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, "secure_host_entry"), FALSE); - gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, "secure_port_spinbutton"), FALSE); - gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, "ftp_host_entry"), FALSE); - gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, "ftp_port_spinbutton"), FALSE); - gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, "socks_host_entry"), FALSE); - gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, "socks_port_spinbutton"), FALSE); - - synchronize_entries (builder); - } - - /* Autoconfiguration */ - g_settings_bind (proxy_settings, "autoconfig-url", - _gtk_builder_get_widget (builder, "autoconfig_entry"), "text", - G_SETTINGS_BIND_DEFAULT); - - g_signal_connect (gtk_builder_get_object (builder, "network_dialog"), - "response", G_CALLBACK (cb_dialog_response), NULL); - - model = create_listmodel(); - populate_listmodel(GTK_LIST_STORE(model), ignore_hosts); - config_treeview (GTK_TREE_VIEW(gtk_builder_get_object (builder, "treeview_ignore_host")), model); - - proxy_settings_changed_cb (proxy_settings, "ignore-hosts", builder); - - g_signal_connect (gtk_builder_get_object (builder, "button_add_url"), - "clicked", G_CALLBACK (cb_add_url), builder); - g_signal_connect (gtk_builder_get_object (builder, "entry_url"), - "activate", G_CALLBACK (cb_add_url), builder); - g_signal_connect (gtk_builder_get_object (builder, "button_remove_url"), - "clicked", G_CALLBACK (cb_remove_url), builder); -} - -int -gnome_network_properties_init (GtkBuilder *builder) -{ - GError *error = NULL; - gchar *builder_widgets[] = {"network_dialog", "adjustment1", - "adjustment2", "adjustment3", "adjustment4", - "delete_button_img", NULL}; - - bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); - - proxy_settings = g_settings_new ("org.gnome.system.proxy"); - g_signal_connect (proxy_settings, "changed", - G_CALLBACK (proxy_settings_changed_cb), builder); - - http_proxy_settings = g_settings_new ("org.gnome.system.proxy.http"); - https_proxy_settings = g_settings_new ("org.gnome.system.proxy.https"); - ftp_proxy_settings = g_settings_new ("org.gnome.system.proxy.ftp"); - socks_proxy_settings = g_settings_new ("org.gnome.system.proxy.socks"); - - if (gtk_builder_add_objects_from_file (builder, GNOMECC_GNP_UI_FILE, - builder_widgets, &error) == 0) { - g_warning ("Could not load main dialog: %s", - error->message); - g_error_free (error); - g_object_unref (builder); - return 1; - } - - setup_dialog (builder); - - return 0; -} diff --git a/panels/proxy/gnome-proxy-properties.ui b/panels/proxy/gnome-proxy-properties.ui deleted file mode 100644 index 309fc9ea1..000000000 --- a/panels/proxy/gnome-proxy-properties.ui +++ /dev/null @@ -1,1086 +0,0 @@ - - - - - - 5 - Network Proxy Preferences - False - dialog - - - True - 2 - - - True - vertical - - - True - 0 - - - True - 3 - - - True - 1 - Location: - - - 0 - - - - - True - - - 1 - - - - - _Delete Location - True - False - True - True - delete_button_img - True - - - False - False - 2 - - - - - - - False - False - 0 - - - - - True - True - 5 - - - True - 12 - vertical - 18 - - - True - True - False - True - True - True - - - True - <b>Di_rect internet connection</b> - True - True - - - - - False - False - 0 - - - - - True - vertical - 18 - - - True - vertical - 6 - - - True - True - False - True - True - none_radiobutton - - - True - <b>_Manual proxy configuration</b> - True - True - - - - - False - False - 0 - - - - - _Use the same proxy for all protocols - True - False - True - False - True - True - - - False - False - 1 - - - - - True - False - - - True - - - - False - False - 0 - - - - - True - 4 - 5 - 12 - 6 - - - True - 0 - H_TTP proxy: - True - http_host_entry - - - GTK_FILL - - - - - - True - 0 - _Secure HTTP proxy: - True - secure_host_entry - - - 1 - 2 - GTK_FILL - - - - - - True - 0 - _FTP proxy: - True - ftp_host_entry - - - 2 - 3 - GTK_FILL - - - - - - True - 0 - S_ocks host: - True - socks_host_entry - - - 3 - 4 - GTK_FILL - - - - - - True - True - - - - 1 - 2 - - - - - - True - True - - - - 1 - 2 - 1 - 2 - - - - - - True - True - - - - 1 - 2 - 2 - 3 - - - - - - True - True - - - - 1 - 2 - 3 - 4 - - - - - - True - 0 - Port: - - - - - - 2 - 3 - GTK_FILL - - - - - - True - 0 - Port: - - - - - - 2 - 3 - 1 - 2 - GTK_FILL - - - - - - True - 0 - Port: - - - - - - 2 - 3 - 2 - 3 - GTK_FILL - - - - - - True - 0 - Port: - - - - - - 2 - 3 - 3 - 4 - GTK_FILL - - - - - - True - True - - adjustment4 - 1 - - - - - - 3 - 4 - - - - - - True - True - - adjustment3 - 1 - - - - - - 3 - 4 - 1 - 2 - - - - - - True - True - - adjustment2 - 1 - - - - - - 3 - 4 - 2 - 3 - - - - - - True - True - - adjustment1 - 1 - - - - - - 3 - 4 - 3 - 4 - - - - - - _Details - True - True - True - True - - - 4 - 5 - GTK_FILL - - - - - - - - - - - - - - - 1 - - - - - 2 - - - - - 0 - - - - - True - vertical - 6 - - - True - True - False - True - 0.4699999988079071 - True - none_radiobutton - - - True - <b>_Automatic proxy configuration</b> - True - True - - - - - False - False - 0 - - - - - True - - - True - - - - False - False - 0 - - - - - True - False - 12 - - - True - Autoconfiguration _URL: - True - autoconfig_entry - - - False - False - 0 - - - - - True - True - - - - 1 - - - - - 1 - - - - - 1 - - - - - False - False - 1 - - - - - 1 - - - - - - - True - Proxy Configuration - - - False - - - - - True - 12 - vertical - 6 - - - True - 0 - Ignore Host List - - - - - - False - False - 0 - - - - - True - - - True - - - - False - False - 0 - - - - - True - 2 - 2 - 12 - 6 - - - True - True - - - - - - - - - gtk-add - True - True - True - True - - - 1 - 2 - GTK_FILL - - - - - - True - True - automatic - automatic - in - - - True - True - False - - - - - 1 - 2 - GTK_FILL - - - - - True - 0 - 0 - 0 - - - True - - - gtk-remove - True - True - True - True - - - 0 - - - - - - - 1 - 2 - 1 - 2 - GTK_FILL - GTK_FILL - - - - - 1 - - - - - 1 - - - - - 1 - - - - - True - Ignored Hosts - - - 1 - False - - - - - 1 - - - - - False - False - 1 - - - - - - - - True - end - - - gtk-help - True - True - True - False - True - - - False - False - 0 - - - - - - - - gtk-close - True - True - True - False - True - - - False - False - 2 - - - - - False - end - 0 - - - - - - helpbutton1 - closebutton1 - - - - 5 - HTTP Proxy Details - False - dialog - - - True - 2 - - - True - 5 - 6 - - - True - True - False - True - True - - - True - <b>_Use authentication</b> - True - True - - - - - False - False - 0 - - - - - True - - - True - - - - False - False - 0 - - - - - True - False - 2 - 2 - 12 - 6 - - - True - 0 - U_sername: - True - username_entry - - - GTK_FILL - - - - - - True - 0 - _Password: - True - password_entry - - - 1 - 2 - GTK_FILL - - - - - - True - True - False - - - 1 - 2 - 1 - 2 - - - - - - True - True - - - 1 - 2 - - - - - - 1 - - - - - 1 - - - - - 1 - - - - - True - end - - - gtk-help - True - True - True - False - True - - - False - False - 0 - - - - - gtk-close - True - True - True - False - True - - - False - False - 1 - - - - - False - end - 0 - - - - - - helpbutton2 - closebutton2 - - - - 6 - Create New Location - False - True - True - dialog - - - True - True - - - True - - - True - _Location name: - True - text - - - False - False - 1 - - - - - True - True - True - - - 6 - 2 - - - - - 1 - - - - - The location already exists. - - - 2 - - - - - True - end - - - C_reate - True - True - True - new_location_btn_img - True - - - False - False - 0 - - - - - gtk-cancel - True - True - True - True - - - False - False - 1 - - - - - False - False - end - 0 - - - - - - new_location - button2 - - - - 65535 - 1 - 10 - - - 65535 - 1 - 10 - - - 65535 - 1 - 10 - - - 65535 - 1 - 10 - - - True - gtk-add - - - True - gtk-delete - - diff --git a/panels/proxy/icons/16x16/gnome-proxy-properties.png b/panels/proxy/icons/16x16/gnome-proxy-properties.png deleted file mode 100644 index ebacb9830f060d33487a8ab6e9295e5d350d5b2f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 824 zcmV-81IPS{P)qqmf(mnaOJ|pb z5keG7X;>3Nl+G>-t1y?hD2jrW%>w{qtkRg9$8#Lu_cQny1*KjPuMAoCfKo4vxp_Qe ztTNP21OQ5@mgjjaFMD7c9Sq&UwxndJRBBL4wJB8(6j2l`L#<_|0N{U7N>Pwk7zUXA z{wyX#+TpgEnd{ zs?P04^Q9&*#)yykYC-|RFPAe?6vg7`=;)ZzlF|r=)4|_seu(_tMx3v2f)ELqOeVUp zxG+VC{G+S8^PQ=%NDiE!QmGE4rKTkm?8sMJd#$t2UUc;T)wuu;SYH1d{R4g0j^`ay z>D$w#?5rGvMx!~{aO(KRfI(y9={;(-dabqB`q}Ap-cS_f#F{nIzGOr4x{;BQNdOsy z$gb(>FG^f&oKLUUiyn_>p{KXom6L6hMYr2M{^sqQ5ij-H+HT&N0e~YlhsNgS=9osS zd4KE5Z3f_eUH!3Fw&9`F#I1=^Y;2r+;*;GC0RI43El)ydyFDfV00008z;<=)%p_<^-y(9(F4liYLf|NhQDC+B$>5di=KK|hlu>58hVK4b|=lCG+%T6wO?lA7>O15r_zZpx@9mjSRyeP17=F@_QiY zHv?EVfCMWOrViQr2aN0AJ}&@nJ{ z6Z`>WaWE4@QQ?+UU9!!CzFVU&27-RF+wJ{Mr=!Q=aCE=l^5N|?U;~xjDgZ3)*rx7< zQ?<#oplLtZj@jAS;;DO66pO{~0$2`CaE{AYLr8ARLyj4PoG+(p&KERwuhqeBw+}g; zj*!FQ_{m#dv3wK^K&5vl7)$RsJn?6$?z=S#Q53q*cV5UoV*=sIwakw5H+fR^;OUy> z-7|qfD?9#c;*U(MmBE~JOiYb~F%jS#901Y6h7ey^zyA&9WT0c@2sr21x%N$jKEIC9 zAqCGAKaHwAJ~$q?r`eVCVOsivF$R;#gzvt*j+ya)Q2JaE?vKylaz`(078|TqX|dLp z)iGm?YxBCP(bo++qrHrb1(*0?b`s314@NdUn7{5%9f&;VEg#Iu2GU*5Op zEFPQ;o8ZLgOc-sSwxO}{04%~I2n78}IWe$f0Ad+uk?9ht@$D_F-o1;ar=wK8dl%J| z?<-vC(pj3zW()vdj_L zOSQjxP2So(xLhtMzbc5uVmQ}%Zdz5<_snMV$upmwO{@e?IX=+z`f5=W-}QLpy$$sZ zIgvU z;E!!s@7_^TQtH)pJ<)ZkYa|kld_jcPoE)jx?RMJ~MY+v6e>EPDM-@fU-5cDrW%K4- zA|CtZ;@1&xdBwj=!J;UNiGqRx``FlTy~B5g=M2N>KYi*<7yu3)YWg`E{aceH+b<{D zPH_NVH63gm=>NWNhwPE1jT<+K6O)sAI>-M3EnE9viKBVe00000NkvXXu0mjfg|7bf diff --git a/panels/proxy/icons/24x24/gnome-proxy-properties.png b/panels/proxy/icons/24x24/gnome-proxy-properties.png deleted file mode 100644 index e743c83136aa3c478d88c5cb7a8f4ca3296f913c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1081 zcmV-91jhS`P)D%f*KI8Cjbs2; zG9V(!WHKQTP*(sG2*e2hA;>uZz-E0EL?mrF*hY*=oi|T=Ux;*g7HQHjbPNpM1phnP zin@vdT-lq$e%>|*dizJ7_jui8u~_C z_4|VSqUa?O02CLLLJ%S|n3((}?DzJMfHA4_Qv2oD?|?wKdObRW%nV1^zjdx$SWBTS zvToOA@Z03Qm|t>408Tn4r^g`(4B#9b08vO$#6z-uXaG(I+J=vTbB@yF!|3|t21W)I zJeTtfO7<1P`nUzczvx9`v>qagBCdRP1M}l^*tyk(KgQ?L-PQwhoEh=)@`JJFm>CFy zz_le^tSM{_N$=fyJe6s~^{E~_y}^!=TMCkro&*3aEiFNkBn?13fIzGO6)zsxcVYR3 znI#)W<|okdQ44Bn4k1o@1Rk$DeBT0uCIJ4Jo84+FFWjG9ws#NB&dyNT-aS;Fe;|9U z<`${hiP1nkUiU8TiN%iX+qMG$iVBOMr!01OyzX5O{ow$>O9v|?UDv8irnuu}?y?Oj z$tg%pO@;E40>9sni|rR@RaJf4WHOyO|M7+3n#l!WC4)n?uO>3a-f}pc`>U&}6MR13 zQsaq60)XZZn@Ld=wW_kp>~gs(OeS`$=C$g?m>C>>^Tz+N;d}`D%jM22Tw2ab{(!{yBxv~C%{w~8XK5u&eZ z`;NT4odvqC2Rpv$81~KhJ|#k9LV}!Qx7*E%qTJ@3zZ?hzW)wxy?P+$}ylGPs5%+)f z^_RYa{GvZs12i-=gk;JX3ua|yS;oeG?iso>v}hPc-?_8rCjg-CNbL_ZGrw!HY#u$` za+U-5qPDJPpzpih9ZrW+PEXHZlT%YV{;%;Da;E?nreShg00000NkvXXu0mjfmHzb! diff --git a/panels/proxy/icons/32x32/gnome-proxy-properties.png b/panels/proxy/icons/32x32/gnome-proxy-properties.png deleted file mode 100644 index 826d99d8fdb17fbd262e60ad94a10282d052c3c0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1855 zcmV-F2f+A=P))j8!~fGXu@WjOez<}WavcDf zLtRD~Th-Y3>5bT#jLquh<>g6Rwr+NNy08a!p`tY+Wn> zG0y-1$g({79HCAD04U=$l8N~EF9CtcWCj3y`>oSVqv0>#uHRHPX9gy0qO-6ZhD>Ep zMS(0+P+5jTDP%d)wHywEQW;@6G`aS>FBCzR>Gx-=t%?CkWiSTZ`N!>;xy6f$LAa^D zI4*K|Hf^@}3rjHqIlO}5bwTIW9?E2fI?9el&+bzkx3hH^?}Otf8q^C8%#q( zLoax}-sHeoz#vJI3xGNR0008Cv|f&xR#;FpgMkUF+)+9FH3oWKT2rcS1OUKPGSKhp z1*KE!swk1?vuDnkpO&v40Ms$?+`{K(FmSWY291WFb)otZfMMJFBU2)zLAw-0t}cR%UO- z{m*TJW2lCu&1eqdSl577R_Lo}bbf;d@& z)!%s@ak2)@C$7SF=fOBD3bfo*UxW}LT5VMfyqy0gUe13L0Px=Xf54&z&!Uq)L|e}- zWEwNEXu-3%cIFnAt$zM#%i{8^+MiJw&}nrek`zQ@;xm)Z^E?2+G2Dv}>Kot~ z=>Y)nJU=6EaPSEPLFfaZjkZrz2Bff5`T85%PEbnYCJ_g8aP=ht8B=-x{IVURW)Ccz zHcrNPo|gtaLq7))9{0He_~h)TrwJjSAR>elMt-#PjdB1VO#}k|u`P|CfBf}4Akul5 zvDq(X%rh{3c9tC$qt;87GBTP2d0JATzu?Doe*8FA&FMy>eU?}4s!Alo zB%iX-VwuvVq9}eVH#={Bc6L@qQDKp8-n@C}bvn`BZVNe`kDWb^?*5Tc|0500-{ZBM z4LtuSFcj!Lb?Q_wCICVR*}HeIA&6iymFRpqEafLZld^DrMn+yra%xUmdRk_@(U{Ob z(61we)8*ynat4DDe!m}G-Cc?tmZkLcbV-sVzsv3F9UOe(aJdG$2V8D@Sf+LzPaJ@D zAUQeNTU}ipWaAqX#u$ztKdv1aac3l_Wo9Lq3Uz2?=H* z#)(QW6ts`{Mmzofkxq|i&@nXR?BBKPJuhR75yluS77JfhRkgri&=>f8zBsr031_!= zGmmEol*)cZp|S#eZ^QZxtCA9vQa=3ihyU^Uyz^>y|7QNXzk9bYAtAxJZR@stkH_O` zy3q6)VM;U4Yj{q}8wHI{o0*w~w6ruOF)=Y{Hk(F7(c~y7DCn6ng1Wjo!Q=771JFp4 zM8n~5ptiQw|I1%hr|5LrEw7fnx{)y^o;!c;OTRyGQlrtl{?oU%uWC5M-`@cWvwpy(m01<#LC4%%gV~i);@8&J1$vXiOT(R=S;^HL> z_wBdFJ#C*^0q{J}@^bUU&aTcYf4_6*CdYBDwFeFkPtVcog^u>GY?lN<=$Ia_J#cWC t&(AvN{{s1q#dXF9002ovPDHLkV1lKvd5!=8 diff --git a/panels/proxy/icons/48x48/gnome-proxy-properties.png b/panels/proxy/icons/48x48/gnome-proxy-properties.png deleted file mode 100644 index e3a4ce2887e2add95617fd687ce5d5f6244d1bc9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3191 zcmV--42biIP)Y=-Kkisc2=v7THkL$KoNux2m#H5lqB5b zoU?!21VN#agl=cQnKL){-0wU0`1Az+fui*=GXBP;9usl!) zq*Cd|FL!*s!tVhXV?MW;GpCP!Z^Wg0h91i=76UIL#A%ye^073{%82^~W;jq8x4*0_AmQ&ufWzW^&YC^LB9TZ8-X@hw8av;6TI0&)*|vZHh~Z~& z@yZ3C?bC(~6~T3)kXMR7E)KWZY@v3$UFCE-EP^21cDdb+ZnwLR5^{r3Dseg;CIIjs zfGFZrPnzgc)BymX!BF2Lf9JnF-_+fVi&x%z-!}E>Klx7~uP~r+@bHg5+oh$Z!@V^C z@kHaBuXaZFcAS6!c$Z0kBG724hkMJI6Q?VH=Q*EdBd`cC1mI@`hNPqcpss!AKAVHO z*X~&Y1ArJX%KXcLMjhP8AwMJ_0OC@L{Eh(Y0|bHP00RKZ49OTmaH1s}K@vOkfOk^mpiZ5qX>k#sDw?V@TYo1C)Rc z^&P7qVxse&D0s?E(Rt+6WdMu;!k!A1(mtV39{>>Rd(l}202IWD^%guLoxJrCWk@{F zdJhc&N>?5HO0Xwx)9 z@wQ@E^zI^P)d}#(lbO(yjosb`JkQ$!fCG^gzexlr01&|` z(H&nSI4K8!5gfaA2#(JBPxnsne4E4J$OUocsps0~0Nen;efM3-b^zG^Yl_o`&VG^y zDDmF6kzd~W_wJoL9xy%!qT}t%haIlhNzBAGuN?rK4{9Z)U+?W~`-`IG`(D`D0l>}} zbM@9Ip8$A4Fvi@yX`Sul@_xOsarrXyUJ3X}d9Tcv_53gZnA*7yWBkVK7iR6k7?*vy zSh&`m6bWmE6OcK zqp=2KbP!{F1R;Fxi_iaI|6KsQG5<9srDPN#bUXlzjf;zm)h1}8k`j~p1&0Jns&7`~ z$f!uj%*ceYvNAAR%q%@Eow?jDS7l|T`TF(ix2tQa8!4q{F-E5`#uth|{;cUY1F&fE zLQE;u5JJ-^C7HoN!O3d1CT`%sfdf>rs{XC5t*qu&4OCvQ>?f5}~Mv&Tn1zHoG$|EzOpgn8-&&L`WMO8(V5?Ya6R;s`WNoYZb=$62|x%#<=!_ z_dn{@QraVcm8+M@2%#!U$wQ2>r2f$gO{GI2@e=-e<#jr2_%Nuftg!6ex6kZ!IvYbnLxsV~ z$uf;*P-u)YCe-0@SQ`zE^?JQtXJ~5FA%t#VjH@xmy264Y#{&W6Z^!{cND!qof>Ij8 z^O87~N~KoxS7;(4A~Y_SAZc!HcItHX4t;~(Nr?LvrOXNdBa@Sohm0RLKH1o8B!>dOmOk;>XP!;^r1%r(;1#@Lp#Hoq%?g2H?$Aw;fJ zC>08YGF~p1Yh*H6tj%U)&CSj2b-LPitJT^@2yLL0)*u8%#@JIKAt6~~$Ba#nij3}m z^3(~#&FY(E+}QDurqj9gJ}+ z#@K;OrrR>3u_>y(T~ImOoslNf9c(ZdNS&_EEeI|rrNlxhZQ5M8#p=n2A&jv+4VRJpb5Z6DA}kBxn_-rKP2puUx*25ZZ?^y0WEcD=b?4PB_Lm9%CHC^IUlB zfLMt_p}=x^7$5{ztF_f=wwP~Qt(I0~GTjch*=%t9#Bsi+rkeMBv~4GZ+VXQZbR^QU z6-)Y2O2>zXho_AgK4JvV^I_*NoUb<+3>O(=yMuyc&t^@`dfH?%3un%r*}MItPrmWm zzWulPe;Ge+-190`Tx7}alAZ1C?cV{g>8e=Om~rFAB~rrdXU?5DcjwNXD;T3An+vyC zytd0%F6A)BQ5d6ejB#+7JPbueMY)56gB>=T&C-zr8#d-)N-15va&4C+$zHn>QA!_T z42Gtrq$I0Us^mJI&RkYjR_AuRfBNXd?bnyBSe&ZS40-IrB}-+ zC6_S9l^gO4@7tNz<*t!ojAU38;a8W@b-CFgl+uLg=;(n-iAh6TE|;vdtkh_+Sjs7- z=eHDXb*;)?A>%ka@rlQuc%q`BqTyC;?V+MgTdv(Z*5ak_rX(b2r(_JzNICG+fqjC| zesF!>M#npg7VsG3MvLq$(a}<+ zLdhyBD=u>!cd4*obGIQaEGPnw<1Sq-y?Qn}IvV0sak9Mi>w>(`Hy3U(BZLmt*4{dB z^3=&w0LVFN%RV@8ivTdWqzl`EH9)@J86clVOcl9RV4CSyc~Dk>_P9y@-t3S(?vzI0U=o$R$M zB^cwln3w?(gESh6)7gIeR&C8~m&?_*eCet#k?1i83O8?%x!rEIYQ-9%Cuhv&J78!s z^xL~{FB61z$Lf`9A6O3OZ^*$s&-a^@HHk||(3*QXW&!}@=C2Lmd5JteKAs7J(E7@} d*PQq2{1=O - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - Network proxy - 16.02.2007 - - - Josef Vybíral - - - - - Josef Vybíral - - - http://blog.vybiral.info - - - network - proxy - - - - - Jakub Steiner - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/panels/proxy/proxy-module.c b/panels/proxy/proxy-module.c deleted file mode 100644 index d3f63f605..000000000 --- a/panels/proxy/proxy-module.c +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2010 Intel, Inc - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * Author: Thomas Wood - * - */ - -#include - -#include "cc-proxy-panel.h" - -#include - -void -g_io_module_load (GIOModule *module) -{ - bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - - /* register the panel */ - cc_proxy_panel_register (module); -} - -void -g_io_module_unload (GIOModule *module) -{ -} diff --git a/po/POTFILES.in b/po/POTFILES.in index e5eda1e56..9bd7cfe0e 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -45,9 +45,6 @@ panels/region/gnome-region-panel.desktop.in.in panels/mouse/gnome-mouse-properties.c [type: gettext/glade]panels/mouse/gnome-mouse-properties.ui panels/mouse/gnome-mouse-panel.desktop.in.in -panels/proxy/gnome-proxy-properties.c -panels/proxy/gnome-proxy-panel.desktop.in.in -[type: gettext/glade]panels/proxy/gnome-proxy-properties.ui panels/network/cc-network-panel.c panels/network/panel-common.c panels/network/gnome-network-panel.desktop.in.in diff --git a/po/POTFILES.skip b/po/POTFILES.skip index 184fa89cc..3f45517d6 100644 --- a/po/POTFILES.skip +++ b/po/POTFILES.skip @@ -18,7 +18,6 @@ panels/user-accounts/data/gnome-user-accounts-panel.desktop.in panels/user-accounts/fingerprint-strings.h capplets/localization/localization.desktop.in capplets/mouse/gnome-settings-mouse.desktop.in -panels/proxy/gnome-proxy-panel.desktop.in panels/network/gnome-network-panel.desktop.in capplets/sound/gnome-settings-sound.desktop.in font-viewer/gnome-font-viewer.desktop.in