[dia] [gtk-deprecated] simplified to gtk_combo_box_text_get_active_text()



commit fda6e39657debdd7d580d55c320d00b41d91db44
Author: Hans Breuer <hans breuer org>
Date:   Sun Mar 27 22:04:30 2011 +0200

    [gtk-deprecated] simplified to gtk_combo_box_text_get_active_text()
    
    not sure how I came to the impression that the extra complexity is
    necessary, after all the removed code is already existing in
    gtk_dialog_get_content_area().

 app/menus.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/app/menus.c b/app/menus.c
index e601e3e..1293a6f 100644
--- a/app/menus.c
+++ b/app/menus.c
@@ -478,10 +478,7 @@ integrated_ui_toolbar_zoom_combo_selection_changed (GtkComboBox *combo,
         float zoom_percent;
         gchar * text;
 #if GTK_CHECK_VERSION(2,24,0)
-	if (gtk_combo_box_get_has_entry (combo))
-	  text = g_strdup (gtk_entry_get_text (GTK_ENTRY (gtk_bin_get_child (GTK_BIN (combo)))));
-	else
-	  text = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT (combo));
+	text = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT (combo));
 #else
 	text = gtk_combo_box_get_active_text (combo);
 #endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]