diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-01-03 19:26:36 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-01-03 19:26:36 +0000 |
commit | 44ec61dd97f1e159457b24458cf86ec39660efd7 (patch) | |
tree | 036b478f431462c22a8e0464d58854b2e86f4233 /examples/selection | |
parent | 6803d93d38eb7f1cf09b89eeaf0cb414ab001d15 (diff) | |
download | gtk+-44ec61dd97f1e159457b24458cf86ec39660efd7.tar.gz |
Re-extract.
2005-01-03 Matthias Clasen <mclasen@redhat.com>
* examples/*: Re-extract.
* docs/tutorial/gtk-tut.sgml: Small corrections.
Diffstat (limited to 'examples/selection')
-rw-r--r-- | examples/selection/gettargets.c | 17 | ||||
-rw-r--r-- | examples/selection/setselection.c | 21 |
2 files changed, 18 insertions, 20 deletions
diff --git a/examples/selection/gettargets.c b/examples/selection/gettargets.c index 74b3fa65a0..388664553b 100644 --- a/examples/selection/gettargets.c +++ b/examples/selection/gettargets.c @@ -1,15 +1,14 @@ -#include <config.h> #include <stdlib.h> #include <gtk/gtk.h> -void selection_received( GtkWidget *widget, - GtkSelectionData *selection_data, - gpointer data ); +static void selection_received( GtkWidget *widget, + GtkSelectionData *selection_data, + gpointer data ); /* Signal handler invoked when user clicks on the "Get Targets" button */ -void get_targets( GtkWidget *widget, - gpointer data ) +static void get_targets( GtkWidget *widget, + gpointer data ) { static GdkAtom targets_atom = GDK_NONE; GtkWidget *window = (GtkWidget *)data; @@ -24,9 +23,9 @@ void get_targets( GtkWidget *widget, } /* Signal handler called when the selections owner returns the data */ -void selection_received( GtkWidget *widget, - GtkSelectionData *selection_data, - gpointer data ) +static void selection_received( GtkWidget *widget, + GtkSelectionData *selection_data, + gpointer data ) { GdkAtom *atoms; GList *item_list; diff --git a/examples/selection/setselection.c b/examples/selection/setselection.c index 926e8e05a0..8ecf96c42a 100644 --- a/examples/selection/setselection.c +++ b/examples/selection/setselection.c @@ -1,5 +1,4 @@ -#include <config.h> #include <stdlib.h> #include <gtk/gtk.h> #include <time.h> @@ -9,8 +8,8 @@ GtkWidget *selection_button; GtkWidget *selection_widget; /* Callback when the user toggles the selection */ -void selection_toggled( GtkWidget *widget, - gint *have_selection ) +static void selection_toggled( GtkWidget *widget, + gint *have_selection ) { if (GTK_TOGGLE_BUTTON (widget)->active) { @@ -37,9 +36,9 @@ void selection_toggled( GtkWidget *widget, } /* Called when another application claims the selection */ -gint selection_clear( GtkWidget *widget, - GdkEventSelection *event, - gint *have_selection ) +static gboolean selection_clear( GtkWidget *widget, + GdkEventSelection *event, + gint *have_selection ) { *have_selection = FALSE; gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (selection_button), FALSE); @@ -48,11 +47,11 @@ gint selection_clear( GtkWidget *widget, } /* Supplies the current time as the selection. */ -void selection_handle( GtkWidget *widget, - GtkSelectionData *selection_data, - guint info, - guint time_stamp, - gpointer data ) +static void selection_handle( GtkWidget *widget, + GtkSelectionData *selection_data, + guint info, + guint time_stamp, + gpointer data ) { gchar *timestr; time_t current_time; |