diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2002-11-08 22:34:38 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-11-08 22:34:38 +0000 |
commit | 2d1ce5a4fb9da6f0f26bd658310cf057eb08bf8b (patch) | |
tree | 6f353519123dcc0de03f49aa864dbcdf4e6e7545 /tests | |
parent | b179b5eba4c4ab4bd764a566f60f70203abe2dc0 (diff) | |
download | gtk+-2d1ce5a4fb9da6f0f26bd658310cf057eb08bf8b.tar.gz |
Put into #ifdef DO_BLINK to avoid an unused static function. (#97965)
* tests/testtext.c (blink_timeout): Put into #ifdef DO_BLINK to
avoid an unused static function. (#97965)
* gtk/gtktextiter.c (backward_line_leaving_caches_unmodified):
* gtk/gtkstyle.c (radio_aa_bits):
(draw_spin_entry_shadow): #if-0-out unused static functions and
variables. (#97965)
* gtk/gtktextview.c (text_window_get_allocation):
* gtk/gtkcolorsel.c (gtk_color_selection_get_palette_size):
(gtk_color_selection_get_palette_color):
(gtk_color_selection_unset_palette_color): Remove unused static
functions. (#97965)
* gtk/gtkcolorsel.c
(gtk_color_selection_set_change_palette_with_screen_hook): Fix doc
comment.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testtext.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/testtext.c b/tests/testtext.c index e18ca51701..55a8269959 100644 --- a/tests/testtext.c +++ b/tests/testtext.c @@ -308,6 +308,7 @@ msgbox_run (GtkWindow *parent, return result; } +#ifdef DO_BLINK /* * Example buffer filling code */ @@ -327,6 +328,7 @@ blink_timeout (gpointer data) return TRUE; } +#endif static gint tag_event_handler (GtkTextTag *tag, GtkWidget *widget, GdkEvent *event, @@ -442,8 +444,10 @@ fill_example_buffer (GtkTextBuffer *buffer) tag = gtk_text_buffer_create_tag (buffer, "fg_blue", NULL); - /* gtk_timeout_add (1000, blink_timeout, tag); */ - +#ifdef DO_BLINK + gtk_timeout_add (1000, blink_timeout, tag); +#endif + setup_tag (tag); color.red = color.green = 0; |