Changeset 12409


Ignore:
Timestamp:
May 1, 2011, 4:14:50 AM (10 years ago)
Author:
jordan
Message:

(trunk gtk) #4218 "open url should set focus on the open button by default" -- done.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/open-dialog.c

    r12204 r12409  
    514514
    515515    gtr_dialog_set_content( GTK_DIALOG( w ), t );
     516
     517#ifdef GTK_CHECK_VERSION(2,20,0)
     518    if( gtk_entry_get_text_length( GTK_ENTRY( e ) ) == 0 )
     519        gtk_widget_grab_focus( e );
     520    else
     521        gtk_widget_grab_focus( gtk_dialog_get_widget_for_response( GTK_DIALOG( w ), GTK_RESPONSE_ACCEPT ) );
     522#endif
     523
    516524    return w;
    517525}
Note: See TracChangeset for help on using the changeset viewer.