From 176ccd0791d2c5f09c9e884e745eadf8606c13aa Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 30 May 2010 00:55:48 -0400 Subject: Bug 617579 - HIG issues in "Save Current View" dialog --- widgets/menus/gal-view-instance-save-as-dialog.c | 27 +-- widgets/menus/gal-view-instance-save-as-dialog.ui | 217 +++++++++------------- 2 files changed, 97 insertions(+), 147 deletions(-) (limited to 'widgets') diff --git a/widgets/menus/gal-view-instance-save-as-dialog.c b/widgets/menus/gal-view-instance-save-as-dialog.c index b713f68000..e3cf68eaac 100644 --- a/widgets/menus/gal-view-instance-save-as-dialog.c +++ b/widgets/menus/gal-view-instance-save-as-dialog.c @@ -230,7 +230,6 @@ static void gal_view_instance_save_as_dialog_init (GalViewInstanceSaveAsDialog *dialog) { GtkWidget *content_area; - GtkWidget *parent; GtkWidget *widget; dialog->instance = NULL; @@ -242,27 +241,19 @@ gal_view_instance_save_as_dialog_init (GalViewInstanceSaveAsDialog *dialog) dialog->builder, "gal-view-instance-save-as-dialog.ui"); widget = e_builder_get_widget (dialog->builder, "vbox-top"); - if (!widget) { - return; - } - - g_object_ref (widget); - - parent = gtk_widget_get_parent (widget); - gtk_container_remove (GTK_CONTAINER (parent), widget); - - /* TODO: add position/size saving/restoring */ - gtk_window_set_default_size (GTK_WINDOW (dialog), 300, 360); - content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); gtk_box_pack_start (GTK_BOX (content_area), widget, TRUE, TRUE, 0); - g_object_unref (widget); + /* TODO: add position/size saving/restoring */ + gtk_container_set_border_width (GTK_CONTAINER (dialog), 5); + gtk_window_set_default_size (GTK_WINDOW (dialog), 300, 360); + gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE); - gtk_dialog_add_buttons (GTK_DIALOG (dialog), - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_OK, GTK_RESPONSE_OK, - NULL); + gtk_dialog_add_buttons ( + GTK_DIALOG (dialog), + GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, + GTK_STOCK_SAVE, GTK_RESPONSE_OK, + NULL); dialog->scrolledwindow = e_builder_get_widget (dialog->builder, "scrolledwindow2"); dialog->treeview = GTK_TREE_VIEW (e_builder_get_widget (dialog->builder, "custom-replace")); diff --git a/widgets/menus/gal-view-instance-save-as-dialog.ui b/widgets/menus/gal-view-instance-save-as-dialog.ui index c7db68aa5f..d7215f1f61 100644 --- a/widgets/menus/gal-view-instance-save-as-dialog.ui +++ b/widgets/menus/gal-view-instance-save-as-dialog.ui @@ -1,174 +1,133 @@ - - - GDK_WINDOW_TYPE_HINT_NORMAL - - + + + + True + 5 + vertical + 12 + + True - 8 + vertical + 6 - + + _Create new view True - 18 - 12 + True + False + True + True + True + + + False + False + 0 + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 24 - + True 6 - + True - True - _Create new view + _Name: True - True - True + entry-create False False + 0 - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 24 - - - True - 6 - - - True - _Name: - True - entry-create - - - False - False - - - - - True - False - True - - - 1 - - - - - - - 1 - - - - - False - False - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 6 - - + True + False True - _Replace existing view - True - True - radiobutton-create - - - False - False - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 24 - - - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - GTK_POLICY_AUTOMATIC - GTK_POLICY_AUTOMATIC - GTK_SHADOW_IN - - - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - True - - - - + 1 - - 1 - - 2 + 1 - - + + + False + False + 0 + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + vertical + 6 + + + _Replace existing view True - GTK_BUTTONBOX_END - - - True - True - True - gtk-cancel - True - - + True + False + True + True + radiobutton-create + + + False + False + 0 + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 24 - + True True - True - gtk-ok - True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + automatic + automatic + in + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + - - 1 - - False - GTK_PACK_END + 1 + + 1 + - - radiobutton-create - radiobutton-replace - button3 - button1 - -- cgit v1.2.3