diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-12-17 07:29:07 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-12-17 07:29:07 +0800 |
commit | db7a74c0b7276ea71c45d029210112a92ce33d7a (patch) | |
tree | d417ca895d6fb29698fd5d72ac0a0697b9f04be2 /calendar/gui/e-cal-view.c | |
parent | 794d833e8d202a0670f1076a0b89af3561eedaaa (diff) | |
download | gsoc2013-evolution-db7a74c0b7276ea71c45d029210112a92ce33d7a.tar.gz gsoc2013-evolution-db7a74c0b7276ea71c45d029210112a92ce33d7a.tar.zst gsoc2013-evolution-db7a74c0b7276ea71c45d029210112a92ce33d7a.zip |
Fixes part of #41237
2003-12-16 Rodrigo Moya <rodrigo@ximian.com>
Fixes part of #41237
* gui/e-calendar-table.c: use GtkClipboard instead of GtkInvisible
for cut/copy/paste.
(selection_clear_event, selection_received, selection_get): removed
unneeded functions.
(e_calendar_table_init): don't create the invisible widget.
(e_calendar_table_copy_clipboard): use gtk_clipboard_set_text().
(e_calendar_table_paste_clipboard): use gtk_clipboard_request_text().
(clipboard_get_text_cb): callback for gtk_clipboard_request_text().
* gui/e-cal-view.c (e_calendar_view_init, e_calendar_view_destroy,
e_calendar_view_copy_clipboard): no need anymore to keep the last
clipboard selection, GtkClipboard does it for us.
svn path=/trunk/; revision=23952
Diffstat (limited to 'calendar/gui/e-cal-view.c')
-rw-r--r-- | calendar/gui/e-cal-view.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/calendar/gui/e-cal-view.c b/calendar/gui/e-cal-view.c index f93cee6c10..ffaca9bedb 100644 --- a/calendar/gui/e-cal-view.c +++ b/calendar/gui/e-cal-view.c @@ -63,9 +63,6 @@ struct _ECalendarViewPrivate { /* Current activity (for the EActivityHandler, i.e. the status bar). */ guint activity_id; - /* clipboard selections */ - gchar *clipboard_selection; - /* The popup menu */ EPopupMenu *view_menu; @@ -341,8 +338,6 @@ e_calendar_view_init (ECalendarView *cal_view, ECalendarViewClass *klass) G_CALLBACK (model_rows_changed_cb), cal_view); g_signal_connect (G_OBJECT (cal_view->priv->model), "model_rows_deleted", G_CALLBACK (model_rows_changed_cb), cal_view); - - cal_view->priv->clipboard_selection = NULL; } static void @@ -361,11 +356,6 @@ e_calendar_view_destroy (GtkObject *object) cal_view->priv->model = NULL; } - if (cal_view->priv->clipboard_selection) { - g_free (cal_view->priv->clipboard_selection); - cal_view->priv->clipboard_selection = NULL; - } - if (cal_view->priv->default_category) { g_free (cal_view->priv->default_category); cal_view->priv->default_category = NULL; @@ -674,9 +664,6 @@ e_calendar_view_copy_clipboard (ECalendarView *cal_view) /* copy the VCALENDAR to the clipboard */ comp_str = icalcomponent_as_ical_string (vcal_comp); - if (cal_view->priv->clipboard_selection != NULL) - g_free (cal_view->priv->clipboard_selection); - cal_view->priv->clipboard_selection = g_strdup (comp_str); gtk_clipboard_set_text (gtk_widget_get_clipboard (GTK_WIDGET (cal_view), clipboard_atom), (const gchar *) comp_str, g_utf8_strlen (comp_str, -1)); |