[brasero] Set focus on the disc name entry by default
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Set focus on the disc name entry by default
- Date: Fri, 3 Jul 2009 13:13:05 +0000 (UTC)
commit 6e1bbff325721fa94466933b6c32dd9767afd31f
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Fri Jul 3 10:41:29 2009 +0200
Set focus on the disc name entry by default
src/brasero-project.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/brasero-project.c b/src/brasero-project.c
index 23e1757..28bc106 100644
--- a/src/brasero-project.c
+++ b/src/brasero-project.c
@@ -381,6 +381,9 @@ brasero_project_set_add_button_state (BraseroProject *project)
}
widget = gtk_ui_manager_get_widget (project->priv->manager, "/Toolbar/Add");
+ if (!widget)
+ return;
+
widget = gtk_bin_get_child (GTK_BIN (widget));
GTK_WIDGET_SET_FLAGS (widget, GTK_CAN_DEFAULT);
gtk_window_set_default (GTK_WINDOW (toplevel), widget);
@@ -1182,6 +1185,7 @@ brasero_project_init (BraseroProject *obj)
0);
g_object_unref (size_group);
+
}
static void
@@ -2139,6 +2143,8 @@ brasero_project_register_ui (BraseroProject *project, GtkUIManager *manager)
gtk_action_set_sensitive (action, FALSE);
project->priv->manager = manager;
+
+ gtk_widget_grab_focus (project->priv->name_display);
}
/******************************* common to save/open ***************************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]