aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-10-22 07:46:13 +0800
committerChristian Persch <chpe@src.gnome.org>2004-10-22 07:46:13 +0800
commit359f14df6b76ebf2a236245f51cf69e1ae0f351e (patch)
tree74741c4dc6a80bec3b4938a86cedf3b3d823e38d /embed
parentf946f0f12df551e2960114e1378785ab245ae0c6 (diff)
downloadgsoc2013-epiphany-359f14df6b76ebf2a236245f51cf69e1ae0f351e.tar
gsoc2013-epiphany-359f14df6b76ebf2a236245f51cf69e1ae0f351e.tar.gz
gsoc2013-epiphany-359f14df6b76ebf2a236245f51cf69e1ae0f351e.tar.bz2
gsoc2013-epiphany-359f14df6b76ebf2a236245f51cf69e1ae0f351e.tar.lz
gsoc2013-epiphany-359f14df6b76ebf2a236245f51cf69e1ae0f351e.tar.xz
gsoc2013-epiphany-359f14df6b76ebf2a236245f51cf69e1ae0f351e.tar.zst
gsoc2013-epiphany-359f14df6b76ebf2a236245f51cf69e1ae0f351e.zip
Add varargs version of ephy_dialog_get_control to get more than one
2004-10-22 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-dialog.c: (ephy_dialog_get_controls): * lib/ephy-dialog.h: Add varargs version of ephy_dialog_get_control to get more than one control at a time. * embed/downloader-view.c: (downloader_view_build_ui): * src/pdm-dialog.c: (pdm_dialog_show_help), (pdm_dialog_init): * src/prefs-dialog.c: (prefs_dialog_show_help), (setup_add_language_dialog), (create_language_section), (prefs_dialog_init): Use that.
Diffstat (limited to 'embed')
-rw-r--r--embed/downloader-view.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index 4b1023d00..56abd15c6 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -568,10 +568,13 @@ downloader_view_build_ui (DownloaderView *dv)
NULL);
/* lookup needed widgets */
- priv->window = ephy_dialog_get_control(d, properties[PROP_WINDOW].id);
- priv->treeview = ephy_dialog_get_control (d, properties[PROP_TREEVIEW].id);
- priv->pause_button = ephy_dialog_get_control (d, properties[PROP_PAUSE_BUTTON].id);
- priv->abort_button = ephy_dialog_get_control (d, properties[PROP_ABORT_BUTTON].id);
+ ephy_dialog_get_controls
+ (d,
+ properties[PROP_WINDOW].id, &priv->window,
+ properties[PROP_TREEVIEW].id, &priv->treeview,
+ properties[PROP_PAUSE_BUTTON].id, &priv->pause_button,
+ properties[PROP_ABORT_BUTTON].id, &priv->abort_button,
+ NULL);
gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->treeview)),
GTK_SELECTION_BROWSE);