gedit r6948 - in trunk: . gedit/dialogs
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit r6948 - in trunk: . gedit/dialogs
- Date: Wed, 4 Mar 2009 16:53:07 +0000 (UTC)
Author: icq
Date: Wed Mar 4 16:53:06 2009
New Revision: 6948
URL: http://svn.gnome.org/viewvc/gedit?rev=6948&view=rev
Log:
2009-03-04 Ignacio Casal Quinteiro <nacho resa gmail com>
* gedit/dialogs/gedit-search-dialog.c:
Connect the changed signal to the editable instead
of the combobox making the search button sensitive when needing
to avoid problems with new versions of gtk+. (Fixes bug #574059).
Modified:
trunk/ChangeLog
trunk/gedit/dialogs/gedit-search-dialog.c
Modified: trunk/gedit/dialogs/gedit-search-dialog.c
==============================================================================
--- trunk/gedit/dialogs/gedit-search-dialog.c (original)
+++ trunk/gedit/dialogs/gedit-search-dialog.c Wed Mar 4 16:53:06 2009
@@ -218,14 +218,12 @@
}
static void
-search_entry_changed (GtkComboBox *combo,
- GeditSearchDialog *dialog)
+search_text_entry_changed (GtkEditable *editable,
+ GeditSearchDialog *dialog)
{
- GtkWidget *entry;
const gchar *search_string;
- entry = gtk_bin_get_child (GTK_BIN (combo));
- search_string = gtk_entry_get_text (GTK_ENTRY (entry));
+ search_string = gtk_entry_get_text (GTK_ENTRY (editable));
g_return_if_fail (search_string != NULL);
if (*search_string != '\0')
@@ -453,9 +451,9 @@
"insert_text",
G_CALLBACK (insert_text_handler),
NULL);
- g_signal_connect (dlg->priv->search_entry,
+ g_signal_connect (dlg->priv->search_text_entry,
"changed",
- G_CALLBACK (search_entry_changed),
+ G_CALLBACK (search_text_entry_changed),
dlg);
g_signal_connect (dlg,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]