[brasero] Killed some warnings
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Killed some warnings
- Date: Fri, 3 Jul 2009 13:13:15 +0000 (UTC)
commit 3dfcc08e2e3b4b79d2d301301a506ef3854a947b
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Fri Jul 3 13:37:23 2009 +0200
Killed some warnings
src/brasero-project.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/src/brasero-project.c b/src/brasero-project.c
index 28bc106..8ea6b36 100644
--- a/src/brasero-project.c
+++ b/src/brasero-project.c
@@ -1417,17 +1417,15 @@ static gboolean
brasero_project_image_properties (BraseroProject *project)
{
GtkResponseType answer;
- GtkWidget *toplevel;
GtkWidget *button;
GtkWidget *dialog;
/* Build dialog */
dialog = brasero_image_properties_new ();
- toplevel = gtk_widget_get_toplevel (GTK_WIDGET (project));
- gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (toplevel));
+ brasero_app_set_toplevel (brasero_app_get_default (), GTK_WINDOW (dialog));
gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE);
- gtk_window_set_position (GTK_WINDOW (toplevel), GTK_WIN_POS_CENTER_ON_PARENT);
+ gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER_ON_PARENT);
gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
@@ -1440,8 +1438,15 @@ brasero_project_image_properties (BraseroProject *project)
button,
GTK_RESPONSE_OK);
+ GTK_WIDGET_SET_FLAGS (button,
+ GTK_WIDGET_FLAGS (button)|
+ GTK_CAN_DEFAULT);
+
brasero_image_properties_set_session (BRASERO_IMAGE_PROPERTIES (dialog), project->priv->session);
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
+ gtk_widget_show_all (dialog);
+
/* launch the dialog */
answer = gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]