[anjuta] build-basic-autotools: bgo#636084 - Crash Anjuta when typing in Build->Configure->Configuration comb



commit e4556d851eecb84ea6d46170ddfa03c3423c1421
Author: Johannes Schmid <jhs gnome org>
Date:   Tue Nov 30 23:49:48 2010 +0100

    build-basic-autotools: bgo#636084 - Crash Anjuta when typing in Build->Configure->Configuration combo box

 .../anjuta-build-basic-autotools-plugin.ui         |    4 +---
 plugins/build-basic-autotools/build-options.c      |    3 ++-
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/plugins/build-basic-autotools/anjuta-build-basic-autotools-plugin.ui b/plugins/build-basic-autotools/anjuta-build-basic-autotools-plugin.ui
index 8af9c9a..2fc914c 100644
--- a/plugins/build-basic-autotools/anjuta-build-basic-autotools-plugin.ui
+++ b/plugins/build-basic-autotools/anjuta-build-basic-autotools-plugin.ui
@@ -329,8 +329,6 @@
                           <object class="GtkComboBox" id="preferences_combo:text:sudo, su -c:0:build-install-root-command">
                             <property name="visible">True</property>
                             <property name="model">install_list</property>
-                            <property name="row_span_column">0</property>
-                            <property name="column_span_column">0</property>
                             <property name="active">0</property>
                             <child>
                               <object class="GtkCellRendererText" id="renderer2"/>
@@ -439,7 +437,7 @@
                       </packing>
                     </child>
                     <child>
-                      <object class="GtkComboBoxText" id="configuration_combo_entry">
+                      <object class="GtkComboBox" id="configuration_combo_entry">
                         <property name="visible">True</property>
                         <property name="has-entry">True</property>
                         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
diff --git a/plugins/build-basic-autotools/build-options.c b/plugins/build-basic-autotools/build-options.c
index ab7a0e6..447b260 100644
--- a/plugins/build-basic-autotools/build-options.c
+++ b/plugins/build-basic-autotools/build-options.c
@@ -246,7 +246,8 @@ on_select_configuration (GtkComboBox *widget, gpointer user_data)
 	}
 	else
 	{
-		name = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT (dlg->combo));
+		GtkWidget* entry = gtk_bin_get_child (GTK_BIN (dlg->combo));
+		name = g_strdup(gtk_entry_get_text (GTK_ENTRY (entry)));
 	}
 	
 	if (*name == '\0')



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