From a21d063ef867d0df151872f79cb04db8e730c42a Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Tue, 9 Jun 1998 07:11:55 +0000 Subject: new functions gtk_selection_data_copy and gtk_selection_data_free. Tue Jun 9 01:57:23 1998 Tim Janik * gtk/gtkselection.h: * gtk/gtkselection.c: new functions gtk_selection_data_copy and gtk_selection_data_free. * gtk/gtkwidget.c (gtk_widget_class_init): fixed gtk_signal_new() call for "selection_received", which was completely bogus. * other fixups to gtk_signal_new() calls all over the place. * gtk/gtktypebuiltins.h: types as variables (formerly macros). * gtk/gtktypebuiltins_vars.c: type variable implementations. * gtk/gtktypebuiltins_ids.c: array entries for builtin type declarations. * gtk/gtktypebuiltins_evals.c: enum value arrays. * gtk/gtk-boxed.defs: gtk and gdk structure definitions, used to build gtk.defs. * gtk/gtk.defs: generated file with scheme syntax for type definitions of gtk and gdk structures and enums. * gtk/gtktypeutils.h: * gtk/gtktypeutils.c: reworked type ids, so they are variables not macros anymore (this fixes binary incompatibility with new enum definitions). * gtk/gtkwidget.c (gtk_widget_real_key_press_event): proccess possible key bindings for this widget. * gtk/gtkwindow.c (gtk_window_key_press_event): chain parent class' handler. * gtk/gtkobject.h: * gtk/gtkobject.c: removed gtk_object_class_new_user_signal_no_recurse() again. new functions gtk_object_class_user_signal_new () and gtk_object_class_user_signal_newv (), to feature the GtkSignalRunType flag on the signal creation. Mon Jun 8 20:52:21 1998 Tim Janik * gtk/gtkcontainer.h: new signal GtkContainer::set_focus_child. --- gtk/gtkselection.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gtk/gtkselection.c') diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c index 0f5e2c509a..c1ae9997b6 100644 --- a/gtk/gtkselection.c +++ b/gtk/gtkselection.c @@ -1412,3 +1412,25 @@ gtk_selection_default_handler (GtkWidget *widget, data->length = -1; } } + + +GtkSelectioData* +gtk_selection_data_copy (GtkSelectionData *data) +{ + GtkSelectionData *new_data; + + g_return_val_if_fail (data != NULL, NULL); + + new_data = g_new (GtkSelectionData, 1); + *new_data = *data; + + return new_data; +} + +void +gtk_selection_data_free (GtkSelectionData *data) +{ + g_return_if_fail (data != NULL); + + g_free (data); +} -- cgit v1.2.1