Sat, 24 Nov 2018 02:44:30 -0600
Update the manpages to reference the 3 variations
| 3391 | 1 | /* GTK - The GIMP Toolkit |
| 2 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald | |
| 3 | * | |
| 4 | * This library is free software; you can redistribute it and/or | |
| 5 | * modify it under the terms of the GNU Library General Public | |
| 6 | * License as published by the Free Software Foundation; either | |
| 7 | * version 2 of the License, or (at your option) any later version. | |
| 8 | * | |
| 9 | * This library is distributed in the hope that it will be useful, | |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 | * Library General Public License for more details. | |
| 13 | * | |
| 14 | * You should have received a copy of the GNU Library General Public | |
| 15 | * License along with this library; if not, write to the | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
15435
diff
changeset
|
16 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
|
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
15435
diff
changeset
|
17 | * Boston, MA 02111-1301, USA. |
| 3391 | 18 | */ |
| 19 | ||
| 20 | /* | |
|
31293
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
26819
diff
changeset
|
21 | * Copyright 2000 Syd Logan |
| 3391 | 22 | */ |
| 23 | ||
| 24 | #ifndef __GTK_TICKER_H__ | |
| 25 | #define __GTK_TICKER_H__ | |
| 26 | ||
| 27 | ||
| 28 | #include <gdk/gdk.h> | |
|
26727
b8885bab55ab
More updates for GTK+ 3.0. This only fixes the single-includes. Fixing all
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
19859
diff
changeset
|
29 | #include <gtk/gtk.h> |
| 3391 | 30 | |
|
39403
43b93b059660
Fix gtkticker plugin lacking PURPLE_PLUGINS define if enabled
Mike Ruprecht <cmaiku@gmail.com>
parents:
36890
diff
changeset
|
31 | #include <purple.h> |
| 3391 | 32 | |
|
39383
0f9d49617abc
Use G_BEGIN_DECLS and G_END_DECLS instead of raw extern "C"
Mike Ruprecht <cmaiku@gmail.com>
parents:
36890
diff
changeset
|
33 | G_BEGIN_DECLS |
| 3391 | 34 | |
|
26819
9aa978699dbc
Fix some more GTK_CHECK_* macros and a GtkType.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
35 | #define GTK_TYPE_TICKER (gtk_ticker_get_type()) |
|
9aa978699dbc
Fix some more GTK_CHECK_* macros and a GtkType.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
36 | #define GTK_TICKER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_TICKER, GtkTicker)) |
|
9aa978699dbc
Fix some more GTK_CHECK_* macros and a GtkType.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
37 | #define GTK_TICKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_TICKER, GtkTickerClass)) |
|
9aa978699dbc
Fix some more GTK_CHECK_* macros and a GtkType.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
38 | #define GTK_IS_TICKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_TICKER)) |
|
9aa978699dbc
Fix some more GTK_CHECK_* macros and a GtkType.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
39 | #define GTK_IS_TICKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_TICKER)) |
| 3391 | 40 | |
| 41 | ||
| 42 | typedef struct _GtkTicker GtkTicker; | |
| 43 | typedef struct _GtkTickerClass GtkTickerClass; | |
| 44 | typedef struct _GtkTickerChild GtkTickerChild; | |
| 45 | ||
| 46 | /* XXX children move from right to left, should be able to go other way */ | |
| 47 | ||
| 48 | struct _GtkTicker | |
| 49 | { | |
| 50 | GtkContainer container; | |
| 51 | guint interval; /* how often to scootch */ | |
| 7631 | 52 | gint spacing; /* inter-child horizontal spacing */ |
| 3391 | 53 | guint scootch; /* how many pixels to move each scootch */ |
| 54 | gint timer; /* timer object */ | |
| 7631 | 55 | gint total; /* total width of widgets */ |
| 56 | gint width; /* width of containing window */ | |
| 3391 | 57 | gboolean dirty; |
| 5170 | 58 | GList *children; |
| 3391 | 59 | }; |
| 60 | ||
| 61 | struct _GtkTickerClass | |
| 62 | { | |
| 63 | GtkContainerClass parent_class; | |
| 64 | }; | |
| 65 | ||
| 66 | struct _GtkTickerChild | |
| 67 | { | |
| 68 | GtkWidget *widget; | |
| 69 | gint x; /* current position */ | |
| 5170 | 70 | gint offset; /* offset in list */ |
| 3391 | 71 | }; |
| 72 | ||
| 73 | ||
|
36890
fa13e99f8248
Register GtkTicker type dynamically
Ankit Vani <a@nevitus.org>
parents:
31293
diff
changeset
|
74 | G_MODULE_EXPORT |
|
26819
9aa978699dbc
Fix some more GTK_CHECK_* macros and a GtkType.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
75 | GType gtk_ticker_get_type (void); |
|
36890
fa13e99f8248
Register GtkTicker type dynamically
Ankit Vani <a@nevitus.org>
parents:
31293
diff
changeset
|
76 | void gtk_ticker_register_type (PurplePlugin *plugin); |
|
fa13e99f8248
Register GtkTicker type dynamically
Ankit Vani <a@nevitus.org>
parents:
31293
diff
changeset
|
77 | |
| 3391 | 78 | GtkWidget* gtk_ticker_new (void); |
| 79 | void gtk_ticker_add (GtkTicker *ticker, | |
| 80 | GtkWidget *widget); | |
| 81 | void gtk_ticker_remove (GtkTicker *ticker, | |
| 82 | GtkWidget *widget); | |
| 83 | void gtk_ticker_set_interval (GtkTicker *ticker, | |
| 84 | gint interval); | |
| 85 | guint gtk_ticker_get_interval (GtkTicker *ticker); | |
| 86 | void gtk_ticker_set_spacing (GtkTicker *ticker, | |
| 87 | gint spacing); | |
| 88 | guint gtk_ticker_get_spacing (GtkTicker *ticker); | |
| 89 | void gtk_ticker_set_scootch (GtkTicker *ticker, | |
| 90 | gint scootch); | |
| 91 | guint gtk_ticker_get_scootch (GtkTicker *ticker); | |
| 92 | void gtk_ticker_start_scroll (GtkTicker *ticker); | |
| 93 | void gtk_ticker_stop_scroll (GtkTicker *ticker); | |
| 94 | ||
|
39383
0f9d49617abc
Use G_BEGIN_DECLS and G_END_DECLS instead of raw extern "C"
Mike Ruprecht <cmaiku@gmail.com>
parents:
36890
diff
changeset
|
95 | G_END_DECLS |
| 3391 | 96 | |
| 97 | #endif /* __GTK_TICKER_H__ */ |