summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuis Medinas <lmedinas@gnome.org>2010-10-21 00:41:09 +0100
committerLuis Medinas <lmedinas@gnome.org>2010-10-21 00:41:09 +0100
commit4421de675feeb7d490d16f5410bf6bd514d99154 (patch)
tree5d9056acae842a0e723d12e27ebafbdf22ebda26 /src
parentupdate NEWS for 2.91.1.1 (diff)
downloadzenity-4421de675feeb7d490d16f5410bf6bd514d99154.tar.gz
zenity-4421de675feeb7d490d16f5410bf6bd514d99154.tar.bz2
zenity-4421de675feeb7d490d16f5410bf6bd514d99154.zip
Remove deprecated code for GTK+-3.0.
Diffstat (limited to 'src')
-rw-r--r--src/entry.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/entry.c b/src/entry.c
index ca53caf2..d69d918a 100644
--- a/src/entry.c
+++ b/src/entry.c
@@ -92,14 +92,14 @@ zenity_entry (ZenityData *data, ZenityEntryData *entry_data)
n_entries = g_slist_length (entries);
if (n_entries > 1) {
- entry = gtk_combo_box_entry_new_text ();
+ entry = gtk_combo_box_new_with_entry ();
for (tmp = entries; tmp; tmp = tmp->next) {
- gtk_combo_box_append_text (GTK_COMBO_BOX (entry), tmp->data);
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (entry), tmp->data);
}
if (entry_data->entry_text) {
- gtk_combo_box_prepend_text (GTK_COMBO_BOX (entry), entry_data->entry_text);
+ gtk_combo_box_text_prepend_text (GTK_COMBO_BOX_TEXT (entry), entry_data->entry_text);
gtk_combo_box_set_active (GTK_COMBO_BOX (entry), 0);
}
@@ -145,7 +145,7 @@ zenity_entry_dialog_response (GtkWidget *widget, int response, gpointer data)
case GTK_RESPONSE_OK:
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_OK);
if (n_entries > 1) {
- text = gtk_combo_box_get_active_text (GTK_COMBO_BOX (entry));
+ text = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT (entry));
}
else {
text = gtk_entry_get_text (GTK_ENTRY (entry));
bgstack15