aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatthias Classen <mclassen@redhat.com>2010-10-21 17:58:08 +0800
committerXan Lopez <xan@gnome.org>2010-10-21 17:58:08 +0800
commit60fdf062468a581293d651da936dd5485ef32c8f (patch)
tree1de94ea93d30ca3065411308fc854f7bb7fb890a /lib
parentab1ddba880306b133d221822cc610f1276d38e20 (diff)
downloadgsoc2013-epiphany-60fdf062468a581293d651da936dd5485ef32c8f.tar
gsoc2013-epiphany-60fdf062468a581293d651da936dd5485ef32c8f.tar.gz
gsoc2013-epiphany-60fdf062468a581293d651da936dd5485ef32c8f.tar.bz2
gsoc2013-epiphany-60fdf062468a581293d651da936dd5485ef32c8f.tar.lz
gsoc2013-epiphany-60fdf062468a581293d651da936dd5485ef32c8f.tar.xz
gsoc2013-epiphany-60fdf062468a581293d651da936dd5485ef32c8f.tar.zst
gsoc2013-epiphany-60fdf062468a581293d651da936dd5485ef32c8f.zip
Use the new GtkComboText APIs
Signed-off-by: Xan Lopez <xan@gnome.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-zoom-control.c4
-rw-r--r--lib/widgets/testspinner.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/widgets/ephy-zoom-control.c b/lib/widgets/ephy-zoom-control.c
index d22e58124..c61c9941c 100644
--- a/lib/widgets/ephy-zoom-control.c
+++ b/lib/widgets/ephy-zoom-control.c
@@ -101,11 +101,11 @@ ephy_zoom_control_init (EphyZoomControl *control)
p->zoom = 1.0;
- combo = p->combo = GTK_COMBO_BOX (gtk_combo_box_new_text ());
+ combo = p->combo = GTK_COMBO_BOX (gtk_combo_box_text_new ());
for (i = 0; i < n_zoom_levels; i++)
{
- gtk_combo_box_append_text (combo, _(zoom_levels[i].name));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _(zoom_levels[i].name));
}
p->combo = combo;
diff --git a/lib/widgets/testspinner.c b/lib/widgets/testspinner.c
index e95155484..be5d256f1 100644
--- a/lib/widgets/testspinner.c
+++ b/lib/widgets/testspinner.c
@@ -223,20 +223,20 @@ int main(int argc, char **argv)
g_signal_connect (widget, "toggled", G_CALLBACK (spin_toolbar_spinner_cb), item);
gtk_box_pack_start (GTK_BOX (vbox2), widget, FALSE, FALSE, 0);
- combo = gtk_combo_box_new_text ();
+ combo = gtk_combo_box_text_new ();
g_signal_connect (combo, "changed", G_CALLBACK (change_toolbar_style_cb), toolbar);
for (i = 0; i < G_N_ELEMENTS (toolbar_styles); ++i)
{
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo), toolbar_styles[i]);
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), toolbar_styles[i]);
}
gtk_combo_box_set_active (GTK_COMBO_BOX (combo), GTK_TOOLBAR_BOTH);
gtk_box_pack_start (GTK_BOX (vbox2), combo, FALSE, FALSE, 0);
- combo = gtk_combo_box_new_text ();
+ combo = gtk_combo_box_text_new ();
g_signal_connect (combo, "changed", G_CALLBACK (change_toolbar_icon_size_cb), toolbar);
for (i = 0; i < G_N_ELEMENTS (icon_sizes); ++i)
{
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo), icon_sizes[i]);
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), icon_sizes[i]);
}
gtk_combo_box_set_active (GTK_COMBO_BOX (combo), GTK_ICON_SIZE_INVALID);
gtk_box_pack_start (GTK_BOX (vbox2), combo, FALSE, FALSE, 0);