diff options
author | Tim Janik <timj@src.gnome.org> | 2008-06-20 11:10:26 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2008-06-20 11:10:26 +0000 |
commit | 0e072ea8be69ca7a0d097b2fdca46ba4045a8d43 (patch) | |
tree | 80fb2595f08eb760a0c08625d986a80fa4ea914b | |
parent | 8a2fac30401f6332d68937303a65f2af60afcd9d (diff) | |
download | gdk-pixbuf-0e072ea8be69ca7a0d097b2fdca46ba4045a8d43.tar.gz |
Implement gtk_selection_get_display, style fixes
svn path=/trunk/; revision=20627
-rw-r--r-- | gtk/gtkselection.c | 56 | ||||
-rw-r--r-- | gtk/gtkselection.h | 2 |
2 files changed, 42 insertions, 16 deletions
diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c index 65350e84f..8adffcb61 100644 --- a/gtk/gtkselection.c +++ b/gtk/gtkselection.c @@ -1118,8 +1118,9 @@ gtk_selection_convert (GtkWidget *widget, * * Since: GSEAL-branch **/ -void gtk_selection_data_set_target (GtkSelectionData *selection_data, - GdkAtom target) +void +gtk_selection_data_set_target (GtkSelectionData *selection_data, + GdkAtom target) { g_return_if_fail (selection_data != NULL); @@ -1134,7 +1135,8 @@ void gtk_selection_data_set_target (GtkSelectionData *selection_data, * * Since: GSEAL-branch **/ -GdkAtom gtk_selection_data_get_target (GtkSelectionData *selection_data) +GdkAtom +gtk_selection_data_get_target (GtkSelectionData *selection_data) { g_return_val_if_fail (selection_data != NULL, 0); @@ -1150,8 +1152,9 @@ GdkAtom gtk_selection_data_get_target (GtkSelectionData *selection_data) * * Since: GSEAL-branch **/ -void gtk_selection_data_set_data_type (GtkSelectionData *selection_data, - GdkAtom data_type) +void +gtk_selection_data_set_data_type (GtkSelectionData *selection_data, + GdkAtom data_type) { g_return_if_fail (selection_data != NULL); @@ -1166,7 +1169,8 @@ void gtk_selection_data_set_data_type (GtkSelectionData *selection_data, * * Since: GSEAL-branch **/ -GdkAtom gtk_selection_data_get_data_type (GtkSelectionData *selection_data) +GdkAtom +gtk_selection_data_get_data_type (GtkSelectionData *selection_data) { g_return_val_if_fail (selection_data != NULL, 0); @@ -1182,8 +1186,9 @@ GdkAtom gtk_selection_data_get_data_type (GtkSelectionData *selection_data) * * Since: GSEAL-branch **/ -void gtk_selection_data_set_format (GtkSelectionData *selection_data, - gint format) +void +gtk_selection_data_set_format (GtkSelectionData *selection_data, + gint format) { g_return_if_fail (selection_data != NULL); @@ -1198,7 +1203,8 @@ void gtk_selection_data_set_format (GtkSelectionData *selection_data, * * Since: GSEAL-branch **/ -gint gtk_selection_data_get_format (GtkSelectionData *selection_data) +gint +gtk_selection_data_get_format (GtkSelectionData *selection_data) { g_return_val_if_fail (selection_data != NULL, 0); @@ -1214,8 +1220,9 @@ gint gtk_selection_data_get_format (GtkSelectionData *selection_data) * * Since: GSEAL-branch **/ -void gtk_selection_data_set_data (GtkSelectionData *selection_data, - const guchar *data) +void +gtk_selection_data_set_data (GtkSelectionData *selection_data, + const guchar *data) { g_return_if_fail (selection_data != NULL); @@ -1231,7 +1238,8 @@ void gtk_selection_data_set_data (GtkSelectionData *selection_data, * * Since: GSEAL-branch **/ -const guchar* gtk_selection_data_get_data (GtkSelectionData *selection_data) +const guchar* +gtk_selection_data_get_data (GtkSelectionData *selection_data) { g_return_val_if_fail (selection_data != NULL, NULL); @@ -1247,8 +1255,9 @@ const guchar* gtk_selection_data_get_data (GtkSelectionData *selection_data) * * Since: GSEAL-branch **/ -void gtk_selection_data_set_length (GtkSelectionData *selection_data, - gint length) +void +gtk_selection_data_set_length (GtkSelectionData *selection_data, + gint length) { g_return_if_fail (selection_data != NULL); @@ -1263,7 +1272,8 @@ void gtk_selection_data_set_length (GtkSelectionData *selection_data, * * Since: GSEAL-branch **/ -gint gtk_selection_data_get_length (GtkSelectionData *selection_data) +gint +gtk_selection_data_get_length (GtkSelectionData *selection_data) { g_return_val_if_fail (selection_data != NULL, 0); @@ -1271,6 +1281,22 @@ gint gtk_selection_data_get_length (GtkSelectionData *selection_data) } /** + * gtk_selection_data_get_display: + * @selection_data: a pointer to a #GtkSelectionData structure. + * + * Retrieves the display of the selection. + * + * Since: GSEAL-branch + **/ +GdkDisplay * +gtk_selection_data_get_display (GtkSelectionData *selection_data) +{ + g_return_val_if_fail (selection_data != NULL, NULL); + + return selection_data->display; +} + +/** * gtk_selection_data_set: * @selection_data: a pointer to a #GtkSelectionData structure. * @type: the type of selection data diff --git a/gtk/gtkselection.h b/gtk/gtkselection.h index fdc5c6344..3f91e9e1e 100644 --- a/gtk/gtkselection.h +++ b/gtk/gtkselection.h @@ -163,7 +163,7 @@ const guchar *gtk_selection_data_get_data (GtkSelectionData *selection_data); void gtk_selection_data_set_length (GtkSelectionData *selection_data, gint length); gint gtk_selection_data_get_length (GtkSelectionData *selection_data); -GdkDisplay gtk_selection_data_get_display (GtkSelectionData *selection_data); +GdkDisplay *gtk_selection_data_get_display (GtkSelectionData *selection_data); void gtk_selection_data_set (GtkSelectionData *selection_data, GdkAtom type, gint format, |