aboutsummaryrefslogtreecommitdiffstats
path: root/src/general-prefs.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-02-06 04:28:09 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-02-06 04:28:09 +0800
commit768eae4a4874a7fe0eada98423f61d84f6416bde (patch)
tree707977820ddbc47121fb107c8569cbb5bb2ef566 /src/general-prefs.c
parent4e522c23a0650605cf8270f381ca10f2f35bbf78 (diff)
downloadgsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar
gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar.gz
gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar.bz2
gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar.lz
gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar.xz
gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar.zst
gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.zip
*** empty log message ***
Diffstat (limited to 'src/general-prefs.c')
-rwxr-xr-xsrc/general-prefs.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/general-prefs.c b/src/general-prefs.c
index 706820f43..81fb1c1e2 100755
--- a/src/general-prefs.c
+++ b/src/general-prefs.c
@@ -18,6 +18,7 @@
#include "general-prefs.h"
#include "ephy-shell.h"
+#include "ephy-embed-single.h"
#include "ephy-prefs.h"
#include "ephy-embed-prefs.h"
#include "ephy-shell.h"
@@ -185,8 +186,12 @@ default_charset_menu_changed_cb (GtkOptionMenu *option_menu,
GList *charsets;
int i;
CharsetInfo *info;
+ EphyEmbedSingle *single;
- ephy_embed_shell_get_charset_titles (shell, NULL, &charsets);
+ single = ephy_embed_shell_get_embed_single
+ (EPHY_EMBED_SHELL (ephy_shell));
+
+ ephy_embed_single_get_charset_titles (single, NULL, &charsets);
i = gtk_option_menu_get_history (option_menu);
charsets = g_list_nth (charsets, i);
@@ -211,15 +216,17 @@ find_charset_in_list_cmp (gconstpointer a,
static void
create_default_charset_menu (GeneralPrefs *dialog)
{
- EphyEmbedShell *shell;
GList *l;
GList *charsets;
GtkWidget *menu;
GtkWidget *optionmenu;
char *value;
+ EphyEmbedSingle *single;
+
+ single = ephy_embed_shell_get_embed_single
+ (EPHY_EMBED_SHELL (ephy_shell));
- shell = EPHY_EMBED_SHELL (ephy_shell);
- ephy_embed_shell_get_charset_titles (shell, NULL, &l);
+ ephy_embed_single_get_charset_titles (single, NULL, &l);
menu = gtk_menu_new ();
@@ -251,7 +258,7 @@ create_default_charset_menu (GeneralPrefs *dialog)
g_signal_connect (optionmenu, "changed",
G_CALLBACK (default_charset_menu_changed_cb),
- shell);
+ embed_shell);
g_list_free (l);
}