Sat, 29 Jun 2013 22:10:18 +0530
Removed purple_conversation_[gs]et_data(). Used g_object_[gs]et_data() instead.
Removed data from PurpleConversationPrivate.
| 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 | |
| 31 | ||
| 32 | #ifdef __cplusplus | |
| 33 | extern "C" { | |
| 34 | #endif /* __cplusplus */ | |
| 35 | ||
|
26819
9aa978699dbc
Fix some more GTK_CHECK_* macros and a GtkType.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
36 | #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
|
37 | #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
|
38 | #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
|
39 | #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
|
40 | #define GTK_IS_TICKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_TICKER)) |
| 3391 | 41 | |
| 42 | ||
| 43 | typedef struct _GtkTicker GtkTicker; | |
| 44 | typedef struct _GtkTickerClass GtkTickerClass; | |
| 45 | typedef struct _GtkTickerChild GtkTickerChild; | |
| 46 | ||
| 47 | /* XXX children move from right to left, should be able to go other way */ | |
| 48 | ||
| 49 | struct _GtkTicker | |
| 50 | { | |
| 51 | GtkContainer container; | |
| 52 | guint interval; /* how often to scootch */ | |
| 7631 | 53 | gint spacing; /* inter-child horizontal spacing */ |
| 3391 | 54 | guint scootch; /* how many pixels to move each scootch */ |
| 55 | gint timer; /* timer object */ | |
| 7631 | 56 | gint total; /* total width of widgets */ |
| 57 | gint width; /* width of containing window */ | |
| 3391 | 58 | gboolean dirty; |
| 5170 | 59 | GList *children; |
| 3391 | 60 | }; |
| 61 | ||
| 62 | struct _GtkTickerClass | |
| 63 | { | |
| 64 | GtkContainerClass parent_class; | |
| 65 | }; | |
| 66 | ||
| 67 | struct _GtkTickerChild | |
| 68 | { | |
| 69 | GtkWidget *widget; | |
| 70 | gint x; /* current position */ | |
| 5170 | 71 | gint offset; /* offset in list */ |
| 3391 | 72 | }; |
| 73 | ||
| 74 | ||
|
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); |
| 3391 | 76 | GtkWidget* gtk_ticker_new (void); |
| 77 | void gtk_ticker_add (GtkTicker *ticker, | |
| 78 | GtkWidget *widget); | |
| 79 | void gtk_ticker_remove (GtkTicker *ticker, | |
| 80 | GtkWidget *widget); | |
| 81 | void gtk_ticker_set_interval (GtkTicker *ticker, | |
| 82 | gint interval); | |
| 83 | guint gtk_ticker_get_interval (GtkTicker *ticker); | |
| 84 | void gtk_ticker_set_spacing (GtkTicker *ticker, | |
| 85 | gint spacing); | |
| 86 | guint gtk_ticker_get_spacing (GtkTicker *ticker); | |
| 87 | void gtk_ticker_set_scootch (GtkTicker *ticker, | |
| 88 | gint scootch); | |
| 89 | guint gtk_ticker_get_scootch (GtkTicker *ticker); | |
| 90 | void gtk_ticker_start_scroll (GtkTicker *ticker); | |
| 91 | void gtk_ticker_stop_scroll (GtkTicker *ticker); | |
| 92 | ||
| 93 | #ifdef __cplusplus | |
| 94 | } | |
| 95 | #endif /* __cplusplus */ | |
| 96 | ||
| 97 | ||
| 98 | #endif /* __GTK_TICKER_H__ */ |