From b6ef512a92ba249dae20b73244111295e65d7061 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Thu, 21 Jun 2001 20:39:58 +0000 Subject: remove buttons and use evolution's standard ui config 2001-06-21 JP Rosevear * gui/dialogs/comp-editor.c (setup_widgets): remove buttons and use evolution's standard ui config * gui/print.c (print_comp_item): print description text svn path=/trunk/; revision=10383 --- calendar/gui/dialogs/comp-editor.c | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index f0fdf837a5..252d858e7f 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -35,6 +35,7 @@ #include #include #include +#include #include "../print.h" #include "save-comp.h" #include "delete-comp.h" @@ -101,6 +102,17 @@ static void close_clicked_cb (GtkWidget *widget, gpointer data); static void help_clicked_cb (GtkWidget *widget, gpointer data); static gint delete_event_cb (GtkWidget *widget, GdkEvent *event, gpointer data); +static EPixmap pixmaps [] = +{ + E_PIXMAP ("/menu/File/FilePrint", "print.xpm"), + E_PIXMAP ("/menu/File/FilePrintPreview", "print-preview.xpm"), + + E_PIXMAP ("/Toolbar/Print", "print.xpm"), + E_PIXMAP ("/Toolbar/Print Preview", "print-preview.xpm"), + + E_PIXMAP_END +}; + static BonoboUIVerb verbs [] = { BONOBO_UI_UNSAFE_VERB ("FileSaveAndClose", save_close_cmd), BONOBO_UI_UNSAFE_VERB ("FileSaveAs", save_as_cmd), @@ -180,6 +192,9 @@ setup_widgets (CompEditor *editor) container = bonobo_ui_container_new (); bonobo_ui_container_set_win (container, BONOBO_WINDOW (priv->window)); bonobo_ui_component_set_container (priv->uic, BONOBO_OBJREF (container)); + bonobo_ui_engine_config_set_path (bonobo_window_get_ui_engine (BONOBO_WINDOW (priv->window)), + "/evolution/UIConf/kvps"); + e_pixmaps_update (priv->uic, pixmaps); bonobo_ui_component_add_verb_list_with_data (priv->uic, verbs, editor); bonobo_ui_util_set_ui (priv->uic, EVOLUTION_DATADIR "/gnome/gui", @@ -193,27 +208,6 @@ setup_widgets (CompEditor *editor) priv->notebook = GTK_NOTEBOOK (gtk_notebook_new ()); gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (priv->notebook), TRUE, TRUE, 0); - - /* Buttons */ - bbox = gtk_hbutton_box_new (); - gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), GTK_BUTTONBOX_END); - gtk_box_pack_start (GTK_BOX (vbox), bbox, FALSE, FALSE, 0); - - pixmap = gnome_stock_pixmap_widget (NULL, GNOME_STOCK_PIXMAP_SAVE); - button = gnome_pixmap_button (pixmap, _("Save")); - gtk_box_pack_start (GTK_BOX (bbox), button, FALSE, FALSE, 0); - gtk_signal_connect (GTK_OBJECT (button), "clicked", - GTK_SIGNAL_FUNC (save_clicked_cb), editor); - - button = gnome_stock_button (GNOME_STOCK_BUTTON_CLOSE); - gtk_box_pack_start (GTK_BOX (bbox), button, FALSE, FALSE, 0); - gtk_signal_connect (GTK_OBJECT (button), "clicked", - GTK_SIGNAL_FUNC (close_clicked_cb), editor); - - button = gnome_stock_button (GNOME_STOCK_BUTTON_HELP); - gtk_box_pack_start (GTK_BOX (bbox), button, FALSE, FALSE, 0); - gtk_signal_connect (GTK_OBJECT (button), "clicked", - GTK_SIGNAL_FUNC (help_clicked_cb), editor); } /* Object initialization function for the calendar component editor */ -- cgit v1.2.3