diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2002-11-07 10:00:56 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2002-11-07 10:00:56 +0800 |
commit | 4dec64f37372d00c85060c11837fa818d5dc7bcc (patch) | |
tree | 215c0482344beb0169e4713cf6c96061554dc8f2 /calendar/gui/dialogs/comp-editor.c | |
parent | 1bc3152fa0a70fdcf3d005d1a0d5432bc4b1431e (diff) | |
download | gsoc2013-evolution-4dec64f37372d00c85060c11837fa818d5dc7bcc.tar.gz gsoc2013-evolution-4dec64f37372d00c85060c11837fa818d5dc7bcc.tar.zst gsoc2013-evolution-4dec64f37372d00c85060c11837fa818d5dc7bcc.zip |
#include gtkoptionmenu.h. (cal_prefs_dialog_new): adapted to changes in
2002-11-06 Rodrigo Moya <rodrigo@ximian.com>
* gui/cal-prefs-dialog.c: #include gtkoptionmenu.h.
(cal_prefs_dialog_new): adapted to changes in glade_xml_new.
* gui/dialogs/event-page.h:
* gui/dialogs/meeting-page.h:
* gui/dialogs/recurrence-page.h:
* gui/dialogs/schedule-page.h:
* gui/dialogs/task-details-page.h:
* gui/dialogs/task-page.h:
* gui/cal-prefs-dialog.h: use correctly the macros.
* gui/dialogs/cancel-comp.c:
* gui/dialogs/changed-comp.c:
* gui/dialogs/comp-editor-page.c:
* gui/gnome-cal.h: removed non-existent headers.
* gui/dialogs/comp-editor.c: remove non-existent headers.
(close_dialog): gtk_widget_destroy the widget.
(setup_widgets, comp_editor_merge_ui): use BonoboWindow correctly.
(comp_editor_set_cal_client, comp_editor_send_comp,
comp_editor_edit_comp): use G_OBJECT_GET_CLASS for
getting the class of an object.
* gui/dialogs/comp-editor-page.c (comp_editor_page_class_init):
use g_signal_* functions.
* gui/dialogs/comp-editor-util.c: converted to BonoboActivation.
* gui/dialogs/comp-editor.h: #include bonobo-window.h, not
bonobo-win.h.
svn path=/trunk/; revision=18622
Diffstat (limited to 'calendar/gui/dialogs/comp-editor.c')
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index a1bf930579..123b08089b 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -28,12 +28,11 @@ #include <unistd.h> #include <glib.h> #include <gdk/gdkkeysyms.h> -#include <libgnome/gnome-defs.h> +#include <gtk/gtkstock.h> #include <libgnome/gnome-i18n.h> #include <libgnomeui/gnome-uidefs.h> #include <libgnomeui/gnome-dialog.h> #include <libgnomeui/gnome-dialog-util.h> -#include <libgnomeui/gnome-stock.h> #include <libgnomeui/gnome-window-icon.h> #include <libgnomeui/gnome-messagebox.h> #include <bonobo/bonobo-ui-container.h> @@ -204,22 +203,23 @@ setup_widgets (CompEditor *editor) priv = editor->priv; /* Window and basic vbox */ - bonobo_window_construct (BONOBO_WINDOW (editor), - "event-editor", "iCalendar Editor"); + container = bonobo_ui_container_new (); + editor = (CompEditor *) bonobo_window_construct (BONOBO_WINDOW (editor), container, + "event-editor", "iCalendar Editor"); gtk_signal_connect (GTK_OBJECT (editor), "delete_event", GTK_SIGNAL_FUNC (delete_event_cb), editor); priv->uic = bonobo_ui_component_new_default (); - container = bonobo_ui_container_new (); - bonobo_ui_container_set_win (container, BONOBO_WINDOW (editor)); - bonobo_ui_component_set_container (priv->uic, BONOBO_OBJREF (container)); + bonobo_ui_component_set_container (priv->uic, + bonobo_object_corba_objref (BONOBO_OBJECT (container)), + NULL); bonobo_ui_engine_config_set_path (bonobo_window_get_ui_engine (BONOBO_WINDOW (editor)), "/evolution/UIConf/kvps"); bonobo_ui_component_add_verb_list_with_data (priv->uic, verbs, editor); bonobo_ui_util_set_ui (priv->uic, EVOLUTION_DATADIR, "evolution-comp-editor.xml", - "evolution-calendar"); + "evolution-calendar", NULL); e_pixmaps_update (priv->uic, pixmaps); vbox = gtk_vbox_new (FALSE, GNOME_PAD_SMALL); @@ -452,7 +452,7 @@ close_dialog (CompEditor *editor) priv = editor->priv; - gtk_object_destroy (GTK_OBJECT (editor)); + gtk_widget_destroy (GTK_WIDGET (editor)); } @@ -758,7 +758,7 @@ comp_editor_set_cal_client (CompEditor *editor, CalClient *client) g_return_if_fail (editor != NULL); g_return_if_fail (IS_COMP_EDITOR (editor)); - klass = COMP_EDITOR_CLASS (GTK_OBJECT (editor)->klass); + klass = COMP_EDITOR_CLASS (G_OBJECT_GET_CLASS (editor)); if (klass->set_cal_client) klass->set_cal_client (editor, client); @@ -996,7 +996,7 @@ comp_editor_edit_comp (CompEditor *editor, CalComponent *comp) g_return_if_fail (comp != NULL); g_return_if_fail (IS_CAL_COMPONENT (comp)); - klass = COMP_EDITOR_CLASS (GTK_OBJECT (editor)->klass); + klass = COMP_EDITOR_CLASS (G_OBJECT_GET_CLASS (editor)); if (klass->edit_comp) klass->edit_comp (editor, comp); @@ -1075,7 +1075,7 @@ comp_editor_send_comp (CompEditor *editor, CalComponentItipMethod method) g_return_val_if_fail (editor != NULL, FALSE); g_return_val_if_fail (IS_COMP_EDITOR (editor), FALSE); - klass = COMP_EDITOR_CLASS (GTK_OBJECT (editor)->klass); + klass = COMP_EDITOR_CLASS (G_OBJECT_GET_CLASS (editor)); if (klass->send_comp) return klass->send_comp (editor, method); @@ -1121,7 +1121,7 @@ comp_editor_merge_ui (CompEditor *editor, priv = editor->priv; - bonobo_ui_util_set_ui (priv->uic, EVOLUTION_DATADIR, filename, "evolution-calendar"); + bonobo_ui_util_set_ui (priv->uic, EVOLUTION_DATADIR, filename, "evolution-calendar", NULL); bonobo_ui_component_add_verb_list_with_data (priv->uic, verbs, editor); if (component_pixmaps != NULL) |