[Xfce4-commits] <thunar:master> Fix critical error when F5 is pressed.

Nick Schermer noreply at xfce.org
Sun Sep 16 20:16:14 CEST 2012


Updating branch refs/heads/master
         to 6e371848de03b01378dc1245efce8a4e5141ab13 (commit)
       from 400dc13336243b4eed153dbfeef8e35ad37ca8c1 (commit)

commit 6e371848de03b01378dc1245efce8a4e5141ab13
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Sep 14 19:01:21 2012 +0200

    Fix critical error when F5 is pressed.
    
    Because the focussed widget was not visible in the multiple
    view, and assertion occured when F5 was pressed:
    'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed.

 thunar/thunar-properties-dialog.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/thunar/thunar-properties-dialog.c b/thunar/thunar-properties-dialog.c
index d6b8b17..ff13857 100644
--- a/thunar/thunar-properties-dialog.c
+++ b/thunar/thunar-properties-dialog.c
@@ -538,10 +538,6 @@ thunar_properties_dialog_init (ThunarPropertiesDialog *dialog)
   gtk_notebook_append_page (GTK_NOTEBOOK (dialog->notebook), dialog->permissions_chooser, label);
   gtk_widget_show (dialog->permissions_chooser);
   gtk_widget_show (label);
-
-
-  /* place the initial focus on the name entry widget */
-  gtk_widget_grab_focus (dialog->name_entry);
 }
 
 
@@ -1275,6 +1271,9 @@ thunar_properties_dialog_update (ThunarPropertiesDialog *dialog)
 
       /* update the properties for a dialog showing 1 file */
       thunar_properties_dialog_update_single (dialog);
+
+      /* place the initial focus on the name entry widget */
+      gtk_widget_grab_focus (dialog->name_entry);
     }
   else
     {


More information about the Xfce4-commits mailing list