Fri, 23 Dec 2011 09:14:56 +0000
propagate from branch 'im.pidgin.pidgin' (head 681ca041d42bb5093590d0ac5495f1309e1472f2)
to branch 'im.pidgin.cpw.qulogic.gtk3-required' (head 1fd0091b97e8e587035d4dd46ba14a6803c412e9)
| 8317 | 1 | /* |
| 2 | * GtkIMHtmlToolbar | |
| 3 | * | |
| 15572 | 4 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 8317 | 5 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 6 | * source distribution. | |
| 7 | * | |
| 8 | * This program is free software; you can redistribute it and/or modify | |
| 9 | * under the terms of the GNU General Public License as published by | |
| 10 | * the Free Software Foundation; either version 2 of the License, or | |
| 11 | * (at your option) any later version. | |
| 12 | * | |
| 13 | * This program is distributed in the hope that it will be useful, | |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 16 | * GNU General Public License for more details. | |
| 17 | * | |
| 18 | * You should have received a copy of the GNU General Public License | |
| 19 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19647
diff
changeset
|
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 8317 | 21 | * |
| 22 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
23 | #ifndef _PIDGINIMHTMLTOOLBAR_H_ |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
24 | #define _PIDGINIMHTMLTOOLBAR_H_ |
| 8317 | 25 | |
|
26727
b8885bab55ab
More updates for GTK+ 3.0. This only fixes the single-includes. Fixing all
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
22648
diff
changeset
|
26 | #include <gtk/gtk.h> |
| 8317 | 27 | #include "gtkimhtml.h" |
| 28 | ||
| 29 | #ifdef __cplusplus | |
| 30 | extern "C" { | |
| 31 | #endif | |
| 32 | ||
| 10125 | 33 | #define DEFAULT_FONT_FACE "Helvetica 12" |
| 34 | ||
|
26818
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
35 | #define GTK_TYPE_IMHTMLTOOLBAR (gtk_imhtmltoolbar_get_type()) |
|
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
36 | #define GTK_IMHTMLTOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_IMHTMLTOOLBAR, GtkIMHtmlToolbar)) |
|
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
37 | #define GTK_IMHTMLTOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_IMHTMLTOOLBAR, GtkIMHtmlToolbarClass)) |
|
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
38 | #define GTK_IS_IMHTMLTOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_IMHTMLTOOLBAR)) |
|
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
39 | #define GTK_IS_IMHTMLTOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_IMHTMLTOOLBAR)) |
| 8317 | 40 | |
| 41 | typedef struct _GtkIMHtmlToolbar GtkIMHtmlToolbar; | |
| 42 | typedef struct _GtkIMHtmlToolbarClass GtkIMHtmlToolbarClass; | |
| 43 | ||
| 44 | struct _GtkIMHtmlToolbar { | |
| 10080 | 45 | GtkHBox box; |
| 8317 | 46 | |
| 47 | GtkWidget *imhtml; | |
| 48 | ||
|
26929
2a8ade936729
Replace GtkTooltips code with GtkTooltip on GTK+ 2.12+.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
49 | #if GTK_CHECK_VERSION(2,12,0) |
|
2a8ade936729
Replace GtkTooltips code with GtkTooltip on GTK+ 2.12+.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
50 | gpointer depr1; |
|
2a8ade936729
Replace GtkTooltips code with GtkTooltip on GTK+ 2.12+.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
51 | #else |
| 8317 | 52 | GtkTooltips *tooltips; |
|
26929
2a8ade936729
Replace GtkTooltips code with GtkTooltip on GTK+ 2.12+.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
53 | #endif |
|
8319
6c18762beceb
[gaim-migrate @ 9043]
Christian Hammond <chipx86@chipx86.com>
parents:
8317
diff
changeset
|
54 | |
| 8317 | 55 | GtkWidget *bold; |
| 56 | GtkWidget *italic; | |
| 57 | GtkWidget *underline; | |
|
8319
6c18762beceb
[gaim-migrate @ 9043]
Christian Hammond <chipx86@chipx86.com>
parents:
8317
diff
changeset
|
58 | |
| 8317 | 59 | GtkWidget *larger_size; |
| 60 | GtkWidget *normal_size; | |
| 61 | GtkWidget *smaller_size; | |
| 62 | ||
| 63 | GtkWidget *font; | |
| 64 | GtkWidget *fgcolor; | |
| 65 | GtkWidget *bgcolor; | |
| 66 | ||
|
11271
939be1fdbf7a
[gaim-migrate @ 13454]
Richard Laager <rlaager@pidgin.im>
parents:
11270
diff
changeset
|
67 | GtkWidget *clear; |
|
939be1fdbf7a
[gaim-migrate @ 13454]
Richard Laager <rlaager@pidgin.im>
parents:
11270
diff
changeset
|
68 | |
| 8317 | 69 | GtkWidget *image; |
| 70 | GtkWidget *link; | |
| 71 | GtkWidget *smiley; | |
|
32699
09ff5997da90
Move the Attention toolbar button into the GtkIMHtmlToolbar struct.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32604
diff
changeset
|
72 | GtkWidget *attention; |
| 8317 | 73 | |
| 74 | GtkWidget *font_dialog; | |
| 75 | GtkWidget *fgcolor_dialog; | |
| 76 | GtkWidget *bgcolor_dialog; | |
| 77 | GtkWidget *link_dialog; | |
|
10138
b72c5fdc98b3
[gaim-migrate @ 11208]
Mark Doliner <markdoliner@pidgin.im>
parents:
10134
diff
changeset
|
78 | GtkWidget *smiley_dialog; |
| 8317 | 79 | GtkWidget *image_dialog; |
| 8427 | 80 | |
| 81 | char *sml; | |
|
19647
5d8cf24e5ce9
Add horizontal rules and strikethroughs to the toolbar
Sean Egan <seanegan@pidgin.im>
parents:
15572
diff
changeset
|
82 | GtkWidget *strikethrough; |
|
5d8cf24e5ce9
Add horizontal rules and strikethroughs to the toolbar
Sean Egan <seanegan@pidgin.im>
parents:
15572
diff
changeset
|
83 | GtkWidget *insert_hr; |
|
22648
e286d795c5f9
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19859
diff
changeset
|
84 | GtkWidget *call; |
| 8317 | 85 | }; |
| 86 | ||
| 87 | struct _GtkIMHtmlToolbarClass { | |
| 10080 | 88 | GtkHBoxClass parent_class; |
| 8317 | 89 | |
| 90 | }; | |
| 91 | ||
|
8319
6c18762beceb
[gaim-migrate @ 9043]
Christian Hammond <chipx86@chipx86.com>
parents:
8317
diff
changeset
|
92 | GType gtk_imhtmltoolbar_get_type (void); |
| 8317 | 93 | GtkWidget* gtk_imhtmltoolbar_new (void); |
| 94 | ||
| 95 | void gtk_imhtmltoolbar_attach (GtkIMHtmlToolbar *toolbar, GtkWidget *imhtml); | |
| 8427 | 96 | void gtk_imhtmltoolbar_associate_smileys (GtkIMHtmlToolbar *toolbar, const char *proto_id); |
| 8317 | 97 | |
|
25922
0b83a033abd6
Added active conversation on GtkIMHtmlToolbar
Marcus Lundblad <malu@pidgin.im>
parents:
24457
diff
changeset
|
98 | void gtk_imhtmltoolbar_switch_active_conversation(GtkIMHtmlToolbar *toolbar, |
|
0b83a033abd6
Added active conversation on GtkIMHtmlToolbar
Marcus Lundblad <malu@pidgin.im>
parents:
24457
diff
changeset
|
99 | PurpleConversation *conv); |
| 8317 | 100 | |
| 101 | #ifdef __cplusplus | |
| 102 | } | |
| 103 | #endif | |
| 104 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
105 | #endif /* _PIDGINIMHTMLTOOLBAR_H_ */ |