Use GTK_COMBO_BOX_TEXT with Statusbar Features
This commit is contained in:
parent
8f421d6cfc
commit
b29ee13da6
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ statusbar_features_app_add_browser_cb (MidoriApp* app,
|
||||||
button = gtk_combo_box_text_new_with_entry ();
|
button = gtk_combo_box_text_new_with_entry ();
|
||||||
gtk_entry_set_width_chars (GTK_ENTRY (gtk_bin_get_child (GTK_BIN (button))), 4);
|
gtk_entry_set_width_chars (GTK_ENTRY (gtk_bin_get_child (GTK_BIN (button))), 4);
|
||||||
for (i = 0; i < G_N_ELEMENTS (zoom_levels); i++)
|
for (i = 0; i < G_N_ELEMENTS (zoom_levels); i++)
|
||||||
gtk_combo_box_text_append_text (GTK_COMBO_BOX (button), zoom_levels[i].label);
|
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (button), zoom_levels[i].label);
|
||||||
gtk_box_pack_start (GTK_BOX (bbox), button, FALSE, FALSE, 2);
|
gtk_box_pack_start (GTK_BOX (bbox), button, FALSE, FALSE, 2);
|
||||||
g_signal_connect (button, "changed",
|
g_signal_connect (button, "changed",
|
||||||
G_CALLBACK (statusbar_features_zoom_level_changed_cb), browser);
|
G_CALLBACK (statusbar_features_zoom_level_changed_cb), browser);
|
||||||
|
|
Loading…
Reference in a new issue