anjuta r4907 - in trunk: . plugins/search
- From: sgranjoux svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4907 - in trunk: . plugins/search
- Date: Sat, 28 Mar 2009 21:52:41 +0000 (UTC)
Author: sgranjoux
Date: Sat Mar 28 21:52:41 2009
New Revision: 4907
URL: http://svn.gnome.org/viewvc/anjuta?rev=4907&view=rev
Log:
* plugins/search/search-replace.c:
Fix #567588 â highlight default button in Find dialog
Modified:
trunk/ChangeLog
trunk/plugins/search/search-replace.c
Modified: trunk/plugins/search/search-replace.c
==============================================================================
--- trunk/plugins/search/search-replace.c (original)
+++ trunk/plugins/search/search-replace.c Sat Mar 28 21:52:41 2009
@@ -1997,6 +1997,7 @@
{
GtkWidget *notebook;
GtkWidget *search_entry;
+ GtkWidget *search_button;
IAnjutaDocument *doc;
IAnjutaEditor *te;
@@ -2009,6 +2010,7 @@
reset_flags_and_search_button();
search_entry = sr_get_gladewidget(SEARCH_STRING)->widget;
+ search_button = sr_get_gladewidget(SEARCH_BUTTON)->widget;
doc = ianjuta_document_manager_get_current_document(sr->docman, NULL);
te = (IANJUTA_IS_EDITOR (doc)) ? IANJUTA_EDITOR (doc) : NULL;
if (te && search_entry && sr->search.range.type != SR_SELECTION)
@@ -2069,5 +2071,12 @@
/* Show the dialog */
if (search_entry)
gtk_widget_grab_focus (search_entry);
+
+ /* Set default button */
+ if (search_button)
+ {
+ GTK_WIDGET_SET_FLAGS (search_button, GTK_CAN_DEFAULT);
+ gtk_widget_grab_default(search_button);
+ }
show_dialog();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]