diff options
author | Xan Lopez <xan@igalia.com> | 2012-01-27 18:18:11 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-01-27 18:18:11 +0800 |
commit | b503cf31550e1efebe0b7cc920f1395f31c6e97b (patch) | |
tree | fa9721525378f8e88aa4409577e6f74a98f3ed3c /src | |
parent | 6bda078417b917696fef7d8fe028391837ad5966 (diff) | |
download | gsoc2013-epiphany-b503cf31550e1efebe0b7cc920f1395f31c6e97b.tar gsoc2013-epiphany-b503cf31550e1efebe0b7cc920f1395f31c6e97b.tar.gz gsoc2013-epiphany-b503cf31550e1efebe0b7cc920f1395f31c6e97b.tar.bz2 gsoc2013-epiphany-b503cf31550e1efebe0b7cc920f1395f31c6e97b.tar.lz gsoc2013-epiphany-b503cf31550e1efebe0b7cc920f1395f31c6e97b.tar.xz gsoc2013-epiphany-b503cf31550e1efebe0b7cc920f1395f31c6e97b.tar.zst gsoc2013-epiphany-b503cf31550e1efebe0b7cc920f1395f31c6e97b.zip |
Get rid of EPHY_STOCK_EPHY
In 99% of the cases we were using it for gtk_window_set_icon_name,
which does nothing in GNOME 3. In the couple of valid use cases, just
use "web-browser" directly.
Diffstat (limited to 'src')
-rw-r--r-- | src/bookmarks/ephy-bookmark-action.c | 1 | ||||
-rw-r--r-- | src/bookmarks/ephy-bookmarks-ui.c | 1 | ||||
-rw-r--r-- | src/bookmarks/ephy-bookmarks.c | 2 | ||||
-rw-r--r-- | src/ephy-history-window.c | 3 | ||||
-rw-r--r-- | src/ephy-main.c | 5 | ||||
-rw-r--r-- | src/ephy-session.c | 2 | ||||
-rw-r--r-- | src/ephy-window.c | 3 | ||||
-rw-r--r-- | src/pdm-dialog.c | 3 | ||||
-rw-r--r-- | src/window-commands.c | 3 |
9 files changed, 2 insertions, 21 deletions
diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c index 1c09b875c..29c568486 100644 --- a/src/bookmarks/ephy-bookmark-action.c +++ b/src/bookmarks/ephy-bookmark-action.c @@ -29,7 +29,6 @@ #include "ephy-favicon-cache.h" #include "ephy-gui.h" #include "ephy-shell.h" -#include "ephy-stock-icons.h" #include "ephy-string.h" #include <glib/gi18n.h> diff --git a/src/bookmarks/ephy-bookmarks-ui.c b/src/bookmarks/ephy-bookmarks-ui.c index 8cfe15057..382fe498c 100644 --- a/src/bookmarks/ephy-bookmarks-ui.c +++ b/src/bookmarks/ephy-bookmarks-ui.c @@ -39,7 +39,6 @@ #include "ephy-prefs.h" #include "ephy-settings.h" #include "ephy-shell.h" -#include "ephy-stock-icons.h" #include "ephy-string.h" #include "ephy-topic-action-group.h" #include "ephy-topic-action.h" diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c index 1cd51e639..3c796b8d9 100644 --- a/src/bookmarks/ephy-bookmarks.c +++ b/src/bookmarks/ephy-bookmarks.c @@ -36,7 +36,6 @@ #include "ephy-prefs.h" #include "ephy-settings.h" #include "ephy-signal-accumulator.h" -#include "ephy-stock-icons.h" #include <string.h> #include <glib/gi18n.h> @@ -447,7 +446,6 @@ redirect_cb (EphyHistory *history, gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_REJECT); gtk_window_set_title (GTK_WINDOW (dialog), _("Update Bookmark?")); - gtk_window_set_icon_name (GTK_WINDOW (dialog), EPHY_STOCK_EPHY); g_object_set_data_full (G_OBJECT (dialog), UPDATE_URI_DATA_KEY, g_strdup (to_uri), (GDestroyNotify) g_free); diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c index 4c46e8333..e5d6e6d79 100644 --- a/src/ephy-history-window.c +++ b/src/ephy-history-window.c @@ -33,9 +33,7 @@ #include "window-commands.h" #include "ephy-file-helpers.h" #include "ephy-debug.h" -#include "ephy-stock-icons.h" #include "ephy-gui.h" -#include "ephy-stock-icons.h" #include "ephy-search-entry.h" #include "ephy-session.h" #include "ephy-favicon-cache.h" @@ -234,7 +232,6 @@ confirmation_dialog_construct (EphyHistoryWindow *editor) gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL); gtk_window_set_title (GTK_WINDOW (dialog), _("Clear History")); - gtk_window_set_icon_name (GTK_WINDOW (dialog), EPHY_STOCK_EPHY); g_signal_connect (dialog, "response", G_CALLBACK (confirmation_dialog_response_cb), diff --git a/src/ephy-main.c b/src/ephy-main.c index 0fca11d59..e4ddc7735 100644 --- a/src/ephy-main.c +++ b/src/ephy-main.c @@ -29,7 +29,6 @@ #include "ephy-settings.h" #include "ephy-shell.h" #include "ephy-state.h" -#include "ephy-stock-icons.h" #include "ephy-string.h" #include "ephy-web-app-utils.h" @@ -411,8 +410,7 @@ main (int argc, exit (1); } g_strfreev (arguments); - arguments = args; - } + arguments = args; } /* Get a timestamp manually if need be */ if (user_time == 0) @@ -454,7 +452,6 @@ main (int argc, g_set_prgname ("epiphany"); g_set_application_name (_("Web")); - gtk_window_set_default_icon_name (EPHY_STOCK_EPHY); } _ephy_shell_create_instance (mode); diff --git a/src/ephy-session.c b/src/ephy-session.c index a03d15690..0c1933ed9 100644 --- a/src/ephy-session.c +++ b/src/ephy-session.c @@ -38,7 +38,6 @@ #include "ephy-request-about.h" #include "ephy-settings.h" #include "ephy-shell.h" -#include "ephy-stock-icons.h" #include "ephy-window.h" #include <errno.h> @@ -231,7 +230,6 @@ client_quit_requested_cb (EggSMClient *sm_client, _("_Abort Downloads"), GTK_RESPONSE_ACCEPT); gtk_window_set_title (GTK_WINDOW (dialog), ""); - gtk_window_set_icon_name (GTK_WINDOW (dialog), EPHY_STOCK_EPHY); gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_REJECT); diff --git a/src/ephy-window.c b/src/ephy-window.c index f2cf7b248..19b3031de 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -52,7 +52,6 @@ #include "ephy-settings.h" #include "ephy-shell.h" #include "ephy-state.h" -#include "ephy-stock-icons.h" #include "ephy-toolbar.h" #include "ephy-type-builtins.h" #include "ephy-web-view.h" @@ -431,8 +430,6 @@ construct_confirm_close_dialog (EphyWindow *window, gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL); /* FIXME gtk_window_set_title (GTK_WINDOW (dialog), _("Close Document?")); */ - gtk_window_set_icon_name (GTK_WINDOW (dialog), EPHY_STOCK_EPHY); - gtk_window_group_add_window (gtk_window_get_group (GTK_WINDOW (window)), GTK_WINDOW (dialog)); diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c index fe92f8bf9..cb88d2484 100644 --- a/src/pdm-dialog.c +++ b/src/pdm-dialog.c @@ -30,7 +30,6 @@ #include "ephy-gui.h" #include "ephy-state.h" #include "ephy-string.h" -#include "ephy-stock-icons.h" #include "ephy-debug.h" #include "ephy-time-helpers.h" #include "ephy-embed-single.h" @@ -1481,8 +1480,6 @@ pdm_dialog_init (PdmDialog *dialog) ephy_gui_ensure_window_group (GTK_WINDOW (window)); - gtk_window_set_icon_name (GTK_WINDOW (window), EPHY_STOCK_EPHY); - g_signal_connect (window, "response", G_CALLBACK (pdm_dialog_response_cb), dialog); /* diff --git a/src/window-commands.c b/src/window-commands.c index 4a6440b64..394bee9c2 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -46,7 +46,6 @@ #include "ephy-settings.h" #include "ephy-shell.h" #include "ephy-state.h" -#include "ephy-stock-icons.h" #include "ephy-string.h" #include "ephy-web-app-utils.h" #include "ephy-zoom.h" @@ -1241,7 +1240,7 @@ window_cmd_help_about (GtkAction *action, * line seperated by newlines (\n). */ "translator-credits", _("translator-credits"), - "logo-icon-name", EPHY_STOCK_EPHY, + "logo-icon-name", "web-browser", "website", "http://www.gnome.org/projects/epiphany", "website-label", _("Web Website"), "license", licence, |