diff options
author | Mike Kestner <mkestner@ximian.com> | 2003-04-16 05:29:29 +0800 |
---|---|---|
committer | Mike Kestner <mkestner@src.gnome.org> | 2003-04-16 05:29:29 +0800 |
commit | c0c761da5f018b5b97c613f5ccdf2bf02efff94e (patch) | |
tree | c325b0690a6e9724c2daad703b2c78615c9b88a0 | |
parent | 2cd51fe3ac66acffb12de01c99784eebbc37ac14 (diff) | |
download | gsoc2013-evolution-c0c761da5f018b5b97c613f5ccdf2bf02efff94e.tar.gz gsoc2013-evolution-c0c761da5f018b5b97c613f5ccdf2bf02efff94e.tar.zst gsoc2013-evolution-c0c761da5f018b5b97c613f5ccdf2bf02efff94e.zip |
fix padding and default size. Fixed warnings elsewhere in file.
2003-04-15 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
svn path=/trunk/; revision=20851
-rw-r--r-- | widgets/menus/gal-define-views-dialog.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/widgets/menus/gal-define-views-dialog.c b/widgets/menus/gal-define-views-dialog.c index 165405f064..db912f3129 100644 --- a/widgets/menus/gal-define-views-dialog.c +++ b/widgets/menus/gal-define-views-dialog.c @@ -115,7 +115,6 @@ gdvd_button_new_dialog_callback(GtkWidget *widget, int id, GalDefineViewsDialog 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 *widget, GalDefineViewsDialog *dialog) } +#if 0 static void gdvd_button_copy_callback(GtkWidget *widget, GalDefineViewsDialog *dialog) { @@ -193,6 +193,7 @@ gdvd_button_copy_callback(GtkWidget *widget, GalDefineViewsDialog *dialog) } } +#endif static void gdvd_connect_signal(GalDefineViewsDialog *dialog, char *widget_name, char *signal, GCallback handler) @@ -223,6 +224,8 @@ gal_define_views_dialog_init (GalDefineViewsDialog *dialog) } 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(GalDefineViewsDialog *dialog, 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")); } } } |