[evolution-patches] 41055 and 41056: DefineViews dialog HIGness



Some padding, size, and title love.

Mike
Index: gal/menus/ChangeLog
===================================================================
RCS file: /cvs/gnome/gal/gal/menus/ChangeLog,v
retrieving revision 1.61
diff -u -p -w -r1.61 ChangeLog
--- gal/menus/ChangeLog	10 Apr 2003 17:47:08 -0000	1.61
+++ gal/menus/ChangeLog	14 Apr 2003 21:25:55 -0000
@@ -1,5 +1,11 @@
 2003-04-10  Mike Kestner  <mkestner ximian com>
 
+	* gal-define-views-dialog.c (g_d_v_d_init): fix padding and
+	default size.  Fixed warnings elsewhere in file.
+	(g_d_v_d_set_collection): set the dialog title
+
+2003-04-10  Mike Kestner  <mkestner ximian com>
+
 	* gal-define-views.glade : use stock buttons, remove desc frame.
 	* gal-define-views-dialog.c (gdvd_init): #if out the copy button.
 	* gal-view-instance.c (g_v_i_get_popup_menu): add ellipsis to
Index: gal/menus/gal-define-views-dialog.c
===================================================================
RCS file: /cvs/gnome/gal/gal/menus/gal-define-views-dialog.c,v
retrieving revision 1.23
diff -u -p -w -r1.23 gal-define-views-dialog.c
--- gal/menus/gal-define-views-dialog.c	10 Apr 2003 17:47:08 -0000	1.23
+++ gal/menus/gal-define-views-dialog.c	14 Apr 2003 21:25:55 -0000
@@ -115,7 +115,6 @@ gdvd_button_new_dialog_callback(GtkWidge
 			gchar *dup_of_name = g_strdup(name);
 			g_strchomp(dup_of_name);
 			if (*dup_of_name != '\0') {
-				GtkWidget *editor;
 				view = gal_view_factory_new_view(factory, dup_of_name);
 				gal_define_views_model_append(GAL_DEFINE_VIEWS_MODEL(dialog->model), view);
 				gal_view_edit(view, GTK_WINDOW (dialog));
@@ -176,6 +175,7 @@ gdvd_button_delete_callback(GtkWidget *w
 
 }
 
+#if 0
 static void
 gdvd_button_copy_callback(GtkWidget *widget, GalDefineViewsDialog *dialog)
 {
@@ -193,6 +193,7 @@ gdvd_button_copy_callback(GtkWidget *wid
 	}
 
 }
+#endif
 
 static void
 gdvd_connect_signal(GalDefineViewsDialog *dialog, char *widget_name, char *signal, GCallback handler)
@@ -223,6 +224,8 @@ gal_define_views_dialog_init (GalDefineV
 	}
 	gtk_widget_ref(widget);
 	gtk_container_remove (GTK_CONTAINER (widget->parent), widget);
+	gtk_window_set_default_size(GTK_WINDOW(dialog), 360, 270);
+	gtk_container_set_border_width(GTK_CONTAINER(dialog), 6);
 	gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), widget, TRUE, TRUE, 0);
 	gtk_widget_unref(widget);
 
@@ -282,10 +285,13 @@ gal_define_views_dialog_set_collection(G
 							      collection->title);
 				gtk_label_set_text (GTK_LABEL (widget),
 						    text);
+				gtk_window_set_title (GTK_WINDOW (dialog), text);
 				g_free (text);
 			} else {
 				gtk_label_set_text (GTK_LABEL (widget),
 						    _("Define Views"));
+				gtk_window_set_title (GTK_WINDOW (dialog),
+						      _("Define Views"));
 			}
 		}
 	}


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