aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-07-02 17:09:26 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-07-02 17:09:26 +0800
commit2507de9eae5d185af79d6425178ac571c4f48a75 (patch)
tree85da5db9f8fbb183b7c5805df472d1a2f7e9a41a /lib
parent7c78319ee7d559c4cedb6f9d9845e5496ccb9520 (diff)
downloadgsoc2013-epiphany-2507de9eae5d185af79d6425178ac571c4f48a75.tar
gsoc2013-epiphany-2507de9eae5d185af79d6425178ac571c4f48a75.tar.gz
gsoc2013-epiphany-2507de9eae5d185af79d6425178ac571c4f48a75.tar.bz2
gsoc2013-epiphany-2507de9eae5d185af79d6425178ac571c4f48a75.tar.lz
gsoc2013-epiphany-2507de9eae5d185af79d6425178ac571c4f48a75.tar.xz
gsoc2013-epiphany-2507de9eae5d185af79d6425178ac571c4f48a75.tar.zst
gsoc2013-epiphany-2507de9eae5d185af79d6425178ac571c4f48a75.zip
Use the browser icon from gnome icon theme. Get rid of cache comparing
2003-07-02 Marco Pesenti Gritti <marco@it.gnome.org> * data/art/Makefile.am: * data/art/epiphany.png: * data/epiphany.desktop.in: * data/epiphany.schemas.in: * data/glade/prefs-dialog.glade: * embed/mozilla/mozilla-notifiers.cpp: * lib/ephy-dialog.c: (ephy_dialog_set_size_group): * lib/ephy-dialog.h: * src/ephy-main.c: (main): * src/prefs-dialog.c: (prefs_dialog_init), (prefs_homepage_blank_button_clicked_cb), (fill_language_editor): * src/window-commands.c: (window_cmd_help_about): Use the browser icon from gnome icon theme. Get rid of cache comparing prefs and rehash prefs pages to make them more specific.
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-dialog.c22
-rw-r--r--lib/ephy-dialog.h4
2 files changed, 26 insertions, 0 deletions
diff --git a/lib/ephy-dialog.c b/lib/ephy-dialog.c
index 2100eb1f6..aa5ed1a16 100644
--- a/lib/ephy-dialog.c
+++ b/lib/ephy-dialog.c
@@ -1283,3 +1283,25 @@ ephy_dialog_get_value (EphyDialog *dialog,
return klass->get_value (dialog, property_id, value);
}
+void
+ephy_dialog_set_size_group (EphyDialog *dialog,
+ int *controls_id,
+ guint n_controls)
+{
+ GtkSizeGroup *size_group;
+ int i;
+
+ size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
+
+ for (i = 0; i < n_controls; i++)
+ {
+ GtkWidget *widget;
+ guint id;
+
+ id = controls_id[i];
+ widget = dialog->priv->props[id].widget;
+ g_return_if_fail (GTK_IS_WIDGET (widget));
+
+ gtk_size_group_add_widget (size_group, widget);
+ }
+}
diff --git a/lib/ephy-dialog.h b/lib/ephy-dialog.h
index 0a6f16a2d..9bc054e6b 100644
--- a/lib/ephy-dialog.h
+++ b/lib/ephy-dialog.h
@@ -99,6 +99,10 @@ void ephy_dialog_add_enum (EphyDialog *dialog,
guint n_items,
const char **items);
+void ephy_dialog_set_size_group (EphyDialog *dialog,
+ int *controls_id,
+ guint n_controls);
+
gint ephy_dialog_run (EphyDialog *dialog);
void ephy_dialog_show (EphyDialog *dialog);