[dia] [usability] layer naming dialog close with Return key



commit 1a816e977b8f20ee49000addbf2b9640645ec360
Author: Hans Breuer <hans breuer org>
Date:   Sun Mar 6 14:32:40 2011 +0100

    [usability] layer naming dialog close with Return key

 app/layer_dialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/app/layer_dialog.c b/app/layer_dialog.c
index 4a63406..2dbe8a6 100644
--- a/app/layer_dialog.c
+++ b/app/layer_dialog.c
@@ -1216,6 +1216,7 @@ layer_dialog_edit_layer (DiaLayerWidget *layer_widget, Diagram *dia, Layer *laye
   gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
   gtk_widget_show (label);
   dialog->name_entry = gtk_entry_new ();
+  gtk_entry_set_activates_default(GTK_ENTRY (dialog->name_entry), TRUE);
   gtk_box_pack_start (GTK_BOX (hbox), dialog->name_entry, TRUE, TRUE, 0);
   if (layer_widget)
     gtk_entry_set_text (GTK_ENTRY (dialog->name_entry), layer_widget->layer->name);



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