Sat, 22 Aug 2020 02:58:07 -0500
Remove the Gtk Ticker plugin as it doesn't scale to today's IM networks
Remove the ticker plugin as it doesn't scale to todays typical IM usage.
Testing Done:
Compile and install.
Reviewed at https://reviews.imfreedom.org/r/81/
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
1 | /* pidgin |
| 15094 | 2 | * |
|
15931
716b5fac1895
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
3 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 15094 | 4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 5 | * source distribution. | |
| 6 | * | |
| 7 | * This program is free software; you can redistribute it and/or modify | |
| 8 | * it under the terms of the GNU General Public License as published by | |
| 9 | * the Free Software Foundation; either version 2 of the License, or | |
| 10 | * (at your option) any later version. | |
| 11 | * | |
| 12 | * This program is distributed in the hope that it will be useful, | |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | * GNU General Public License for more details. | |
| 16 | * | |
| 17 | * You should have received a copy of the GNU General Public License | |
| 18 | * 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:
16254
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 15094 | 20 | */ |
| 21 | ||
| 22 | #include "gtkscrollbook.h" | |
| 23 | ||
| 15577 | 24 | static void pidgin_scroll_book_init (PidginScrollBook *scroll_book); |
| 25 | static void pidgin_scroll_book_class_init (PidginScrollBookClass *klass); | |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
26 | static void pidgin_scroll_book_forall (GtkContainer *c, |
| 15240 | 27 | gboolean include_internals, |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
28 | GtkCallback callback, |
| 15240 | 29 | gpointer user_data); |
| 15094 | 30 | |
| 31 | GType | |
| 15577 | 32 | pidgin_scroll_book_get_type (void) |
| 15094 | 33 | { |
| 34 | static GType scroll_book_type = 0; | |
| 35 | ||
| 36 | if (!scroll_book_type) | |
| 37 | { | |
| 38 | static const GTypeInfo scroll_book_info = | |
| 39 | { | |
| 15577 | 40 | sizeof (PidginScrollBookClass), |
| 15094 | 41 | NULL, /* base_init */ |
| 42 | NULL, /* base_finalize */ | |
| 15577 | 43 | (GClassInitFunc) pidgin_scroll_book_class_init, |
| 15094 | 44 | NULL, /* class_finalize */ |
| 45 | NULL, /* class_data */ | |
| 15577 | 46 | sizeof (PidginScrollBook), |
| 15094 | 47 | 0, |
| 15577 | 48 | (GInstanceInitFunc) pidgin_scroll_book_init, |
| 15094 | 49 | NULL /* value_table */ |
| 50 | }; | |
| 51 | ||
|
37994
11829debec7a
Replace Gtk[HV]Box with GtkBox.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
35531
diff
changeset
|
52 | scroll_book_type = g_type_register_static(GTK_TYPE_BOX, |
| 15577 | 53 | "PidginScrollBook", |
| 15094 | 54 | &scroll_book_info, |
| 55 | 0); | |
| 56 | } | |
| 57 | ||
| 58 | return scroll_book_type; | |
| 59 | } | |
| 60 | ||
|
22032
8136dd5eeda3
Make some more event handlers return appropriate gboolean values. This turns
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21763
diff
changeset
|
61 | static gboolean |
|
31179
245a26364487
The left/right scroll, and close buttons in a PidginScrollBook should
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29499
diff
changeset
|
62 | scroll_left_cb(PidginScrollBook *scroll_book, GdkEventButton *event) |
| 15094 | 63 | { |
| 64 | int index; | |
|
31179
245a26364487
The left/right scroll, and close buttons in a PidginScrollBook should
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29499
diff
changeset
|
65 | |
|
245a26364487
The left/right scroll, and close buttons in a PidginScrollBook should
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29499
diff
changeset
|
66 | if (event->type != GDK_BUTTON_PRESS) |
|
245a26364487
The left/right scroll, and close buttons in a PidginScrollBook should
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29499
diff
changeset
|
67 | return FALSE; |
|
245a26364487
The left/right scroll, and close buttons in a PidginScrollBook should
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29499
diff
changeset
|
68 | |
| 15094 | 69 | index = gtk_notebook_get_current_page(GTK_NOTEBOOK(scroll_book->notebook)); |
| 70 | ||
| 71 | if (index > 0) | |
| 72 | gtk_notebook_set_current_page(GTK_NOTEBOOK(scroll_book->notebook), index - 1); | |
|
22032
8136dd5eeda3
Make some more event handlers return appropriate gboolean values. This turns
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21763
diff
changeset
|
73 | return TRUE; |
| 15094 | 74 | } |
| 75 | ||
|
22032
8136dd5eeda3
Make some more event handlers return appropriate gboolean values. This turns
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21763
diff
changeset
|
76 | static gboolean |
|
31179
245a26364487
The left/right scroll, and close buttons in a PidginScrollBook should
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29499
diff
changeset
|
77 | scroll_right_cb(PidginScrollBook *scroll_book, GdkEventButton *event) |
| 15094 | 78 | { |
| 79 | int index, count; | |
|
31179
245a26364487
The left/right scroll, and close buttons in a PidginScrollBook should
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29499
diff
changeset
|
80 | |
|
245a26364487
The left/right scroll, and close buttons in a PidginScrollBook should
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29499
diff
changeset
|
81 | if (event->type != GDK_BUTTON_PRESS) |
|
245a26364487
The left/right scroll, and close buttons in a PidginScrollBook should
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29499
diff
changeset
|
82 | return FALSE; |
|
245a26364487
The left/right scroll, and close buttons in a PidginScrollBook should
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29499
diff
changeset
|
83 | |
| 15094 | 84 | index = gtk_notebook_get_current_page(GTK_NOTEBOOK(scroll_book->notebook)); |
| 85 | count = gtk_notebook_get_n_pages(GTK_NOTEBOOK(scroll_book->notebook)); | |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
86 | |
| 15094 | 87 | if (index + 1 < count) |
| 88 | gtk_notebook_set_current_page(GTK_NOTEBOOK(scroll_book->notebook), index + 1); | |
|
22032
8136dd5eeda3
Make some more event handlers return appropriate gboolean values. This turns
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21763
diff
changeset
|
89 | return TRUE; |
| 15094 | 90 | } |
| 91 | ||
| 92 | static void | |
| 15577 | 93 | refresh_scroll_box(PidginScrollBook *scroll_book, int index, int count) |
| 15094 | 94 | { |
| 95 | char *label; | |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
96 | |
|
15114
4224e5db3ee4
[gaim-migrate @ 17836]
Mark Doliner <markdoliner@pidgin.im>
parents:
15094
diff
changeset
|
97 | gtk_widget_show_all(GTK_WIDGET(scroll_book)); |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
98 | if (count < 1) |
|
33133
9a31f084f259
Fix some merge errors.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33132
diff
changeset
|
99 | gtk_widget_hide(scroll_book->hbox); |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
100 | else { |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
101 | gtk_widget_show_all(scroll_book->hbox); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
102 | if (count == 1) { |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
103 | gtk_widget_hide(scroll_book->label); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
104 | gtk_widget_hide(scroll_book->left_arrow); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
105 | gtk_widget_hide(scroll_book->right_arrow); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
106 | } |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
107 | } |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
108 | |
| 15094 | 109 | label = g_strdup_printf("<span size='smaller' weight='bold'>(%d/%d)</span>", index+1, count); |
| 110 | gtk_label_set_markup(GTK_LABEL(scroll_book->label), label); | |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
111 | g_free(label); |
| 15094 | 112 | |
| 113 | if (index == 0) | |
| 114 | gtk_widget_set_sensitive(scroll_book->left_arrow, FALSE); | |
| 115 | else | |
| 116 | gtk_widget_set_sensitive(scroll_book->left_arrow, TRUE); | |
| 117 | ||
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
118 | |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
119 | if (index + 1 == count) |
| 15094 | 120 | gtk_widget_set_sensitive(scroll_book->right_arrow, FALSE); |
| 121 | else | |
| 122 | gtk_widget_set_sensitive(scroll_book->right_arrow, TRUE); | |
| 123 | } | |
| 124 | ||
| 125 | ||
| 126 | static void | |
| 15577 | 127 | page_count_change_cb(PidginScrollBook *scroll_book) |
| 15094 | 128 | { |
| 15243 | 129 | int count; |
| 15094 | 130 | int index = gtk_notebook_get_current_page(GTK_NOTEBOOK(scroll_book->notebook)); |
| 15243 | 131 | count = gtk_notebook_get_n_pages(GTK_NOTEBOOK(scroll_book->notebook)); |
| 15094 | 132 | refresh_scroll_box(scroll_book, index, count); |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
133 | } |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
134 | |
|
22032
8136dd5eeda3
Make some more event handlers return appropriate gboolean values. This turns
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21763
diff
changeset
|
135 | static gboolean |
|
31179
245a26364487
The left/right scroll, and close buttons in a PidginScrollBook should
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29499
diff
changeset
|
136 | scroll_close_cb(PidginScrollBook *scroll_book, GdkEventButton *event) |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
137 | { |
|
31294
73607ab89c6f
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
31179
diff
changeset
|
138 | if (event->type == GDK_BUTTON_PRESS) |
|
31179
245a26364487
The left/right scroll, and close buttons in a PidginScrollBook should
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29499
diff
changeset
|
139 | gtk_widget_destroy(gtk_notebook_get_nth_page(GTK_NOTEBOOK(scroll_book->notebook), gtk_notebook_get_current_page(GTK_NOTEBOOK(scroll_book->notebook)))); |
|
22032
8136dd5eeda3
Make some more event handlers return appropriate gboolean values. This turns
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21763
diff
changeset
|
140 | return FALSE; |
| 15094 | 141 | } |
| 142 | ||
| 143 | static void | |
|
32915
27891bd13ca3
It appears that GtkNotebookPage is deprecated, though the 'switch-page'
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31294
diff
changeset
|
144 | switch_page_cb(GtkNotebook *notebook, GtkWidget *page, guint page_num, PidginScrollBook *scroll_book) |
| 15094 | 145 | { |
|
15320
c4eea0409712
[gaim-migrate @ 18048]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15246
diff
changeset
|
146 | int count; |
|
c4eea0409712
[gaim-migrate @ 18048]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15246
diff
changeset
|
147 | count = gtk_notebook_get_n_pages(GTK_NOTEBOOK(scroll_book->notebook)); |
| 15094 | 148 | refresh_scroll_box(scroll_book, page_num, count); |
| 149 | } | |
| 150 | ||
| 151 | static void | |
| 15577 | 152 | pidgin_scroll_book_add(GtkContainer *container, GtkWidget *widget) |
| 15094 | 153 | { |
|
21670
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
154 | PidginScrollBook *scroll_book; |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
155 | |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
156 | g_return_if_fail(GTK_IS_WIDGET (widget)); |
|
33133
9a31f084f259
Fix some merge errors.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33132
diff
changeset
|
157 | g_return_if_fail(gtk_widget_get_parent(widget) == NULL); |
|
21670
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
158 | |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
159 | scroll_book = PIDGIN_SCROLL_BOOK(container); |
|
21719
b4d7c3fe216c
I'm pretty sure this is what was intended.
Daniel Atallah <datallah@pidgin.im>
parents:
21670
diff
changeset
|
160 | scroll_book->children = g_list_append(scroll_book->children, widget); |
| 15094 | 161 | gtk_widget_show(widget); |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
162 | gtk_notebook_append_page(GTK_NOTEBOOK(scroll_book->notebook), widget, NULL); |
| 15577 | 163 | page_count_change_cb(PIDGIN_SCROLL_BOOK(container)); |
| 15094 | 164 | } |
| 165 | ||
| 166 | static void | |
|
21670
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
167 | pidgin_scroll_book_remove(GtkContainer *container, GtkWidget *widget) |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
168 | { |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
169 | int page; |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
170 | PidginScrollBook *scroll_book; |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
171 | g_return_if_fail(GTK_IS_WIDGET(widget)); |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
172 | |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
173 | scroll_book = PIDGIN_SCROLL_BOOK(container); |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
174 | scroll_book->children = g_list_remove(scroll_book->children, widget); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
175 | /* gtk_widget_unparent(widget); */ |
|
21670
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
176 | |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
177 | page = gtk_notebook_page_num(GTK_NOTEBOOK(PIDGIN_SCROLL_BOOK(container)->notebook), widget); |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
178 | if (page >= 0) { |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
179 | gtk_notebook_remove_page(GTK_NOTEBOOK(PIDGIN_SCROLL_BOOK(container)->notebook), page); |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
180 | } |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
181 | } |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
182 | |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
183 | static void |
| 15577 | 184 | pidgin_scroll_book_forall(GtkContainer *container, |
| 15240 | 185 | gboolean include_internals, |
| 186 | GtkCallback callback, | |
| 187 | gpointer callback_data) | |
| 188 | { | |
|
21760
0f73c3c192ac
My previous commit caused the scrollbook's children to be tracked correctly - it turns out that this causes problems because they really aren't the children of the scrollbook, they're the notebook'children. This stuff needs to be revisited.
Daniel Atallah <datallah@pidgin.im>
parents:
21719
diff
changeset
|
189 | #if 0 |
|
21670
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
190 | GList *children; |
|
21760
0f73c3c192ac
My previous commit caused the scrollbook's children to be tracked correctly - it turns out that this causes problems because they really aren't the children of the scrollbook, they're the notebook'children. This stuff needs to be revisited.
Daniel Atallah <datallah@pidgin.im>
parents:
21719
diff
changeset
|
191 | #endif |
|
21670
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
192 | PidginScrollBook *scroll_book; |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
193 | |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
194 | g_return_if_fail(GTK_IS_CONTAINER(container)); |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
195 | |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
196 | scroll_book = PIDGIN_SCROLL_BOOK(container); |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
197 | |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
198 | if (include_internals) { |
| 15240 | 199 | (*callback)(scroll_book->hbox, callback_data); |
|
21670
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
200 | (*callback)(scroll_book->notebook, callback_data); |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
201 | } |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
202 | |
|
21760
0f73c3c192ac
My previous commit caused the scrollbook's children to be tracked correctly - it turns out that this causes problems because they really aren't the children of the scrollbook, they're the notebook'children. This stuff needs to be revisited.
Daniel Atallah <datallah@pidgin.im>
parents:
21719
diff
changeset
|
203 | #if 0 |
|
21670
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
204 | children = scroll_book->children; |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
205 | |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
206 | while (children) { |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
207 | GtkWidget *child; |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
208 | child = children->data; |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
209 | children = children->next; |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
210 | (*callback)(child, callback_data); |
|
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
211 | } |
|
21760
0f73c3c192ac
My previous commit caused the scrollbook's children to be tracked correctly - it turns out that this causes problems because they really aren't the children of the scrollbook, they're the notebook'children. This stuff needs to be revisited.
Daniel Atallah <datallah@pidgin.im>
parents:
21719
diff
changeset
|
212 | #endif |
| 15240 | 213 | } |
| 214 | ||
| 215 | static void | |
| 15577 | 216 | pidgin_scroll_book_class_init (PidginScrollBookClass *klass) |
| 15094 | 217 | { |
| 218 | GtkContainerClass *container_class = (GtkContainerClass*)klass; | |
| 219 | ||
| 15577 | 220 | container_class->add = pidgin_scroll_book_add; |
|
21670
9ce6e7374523
This fixes the problem where all accounts are disabled due to connection
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
20147
diff
changeset
|
221 | container_class->remove = pidgin_scroll_book_remove; |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
222 | container_class->forall = pidgin_scroll_book_forall; |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
223 | } |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
224 | |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
225 | static gboolean |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
226 | close_button_left_cb(GtkWidget *widget, GdkEventCrossing *event, GtkLabel *label) |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
227 | { |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
228 | static GdkCursor *ptr = NULL; |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
229 | if (ptr == NULL) { |
|
37997
7b62a2153898
Use gdk_cursor_new_for_display over gdk_cursor_new.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37994
diff
changeset
|
230 | GdkDisplay *display = gtk_widget_get_display(widget); |
|
7b62a2153898
Use gdk_cursor_new_for_display over gdk_cursor_new.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37994
diff
changeset
|
231 | ptr = gdk_cursor_new_for_display(display, GDK_LEFT_PTR); |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
232 | } |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
233 | |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
234 | gtk_label_set_markup(label, "×"); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
235 | gdk_window_set_cursor(event->window, ptr); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
236 | return FALSE; |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
237 | } |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
238 | |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
239 | static gboolean |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
240 | close_button_entered_cb(GtkWidget *widget, GdkEventCrossing *event, GtkLabel *label) |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
241 | { |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
242 | static GdkCursor *hand = NULL; |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
243 | if (hand == NULL) { |
|
37997
7b62a2153898
Use gdk_cursor_new_for_display over gdk_cursor_new.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37994
diff
changeset
|
244 | GdkDisplay *display = gtk_widget_get_display(widget); |
|
7b62a2153898
Use gdk_cursor_new_for_display over gdk_cursor_new.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37994
diff
changeset
|
245 | hand = gdk_cursor_new_for_display(display, GDK_HAND2); |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
246 | } |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
247 | |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
248 | gtk_label_set_markup(label, "<u>×</u>"); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
249 | gdk_window_set_cursor(event->window, hand); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
250 | return FALSE; |
| 15094 | 251 | } |
| 252 | ||
| 253 | static void | |
| 15577 | 254 | pidgin_scroll_book_init (PidginScrollBook *scroll_book) |
| 15094 | 255 | { |
|
39842
66da823fe9b3
Fix left/right arrows in scrollbook.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39673
diff
changeset
|
256 | const gchar *left_arrow_icon_names[] = { |
|
66da823fe9b3
Fix left/right arrows in scrollbook.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39673
diff
changeset
|
257 | "pan-start-symbolic", |
|
66da823fe9b3
Fix left/right arrows in scrollbook.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39673
diff
changeset
|
258 | "pan-left-symbolic", |
|
66da823fe9b3
Fix left/right arrows in scrollbook.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39673
diff
changeset
|
259 | }; |
|
66da823fe9b3
Fix left/right arrows in scrollbook.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39673
diff
changeset
|
260 | const gchar *right_arrow_icon_names[] = { |
|
66da823fe9b3
Fix left/right arrows in scrollbook.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39673
diff
changeset
|
261 | "pan-end-symbolic", |
|
66da823fe9b3
Fix left/right arrows in scrollbook.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39673
diff
changeset
|
262 | "pan-right-symbolic", |
|
66da823fe9b3
Fix left/right arrows in scrollbook.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39673
diff
changeset
|
263 | }; |
|
66da823fe9b3
Fix left/right arrows in scrollbook.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39673
diff
changeset
|
264 | GIcon *icon; |
| 15094 | 265 | GtkWidget *eb; |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
266 | GtkWidget *close_button; |
| 15094 | 267 | |
|
37994
11829debec7a
Replace Gtk[HV]Box with GtkBox.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
35531
diff
changeset
|
268 | gtk_orientable_set_orientation(GTK_ORIENTABLE(scroll_book), GTK_ORIENTATION_VERTICAL); |
|
11829debec7a
Replace Gtk[HV]Box with GtkBox.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
35531
diff
changeset
|
269 | |
|
35528
e04ba70092e9
Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35454
diff
changeset
|
270 | scroll_book->hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); |
| 15094 | 271 | |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
272 | /* Close */ |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
273 | eb = gtk_event_box_new(); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
274 | gtk_box_pack_end(GTK_BOX(scroll_book->hbox), eb, FALSE, FALSE, 0); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
275 | gtk_event_box_set_visible_window(GTK_EVENT_BOX(eb), FALSE); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
276 | gtk_widget_set_events(eb, GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
277 | close_button = gtk_label_new("×"); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
278 | g_signal_connect(G_OBJECT(eb), "enter-notify-event", G_CALLBACK(close_button_entered_cb), close_button); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
279 | g_signal_connect(G_OBJECT(eb), "leave-notify-event", G_CALLBACK(close_button_left_cb), close_button); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
280 | gtk_container_add(GTK_CONTAINER(eb), close_button); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
281 | g_signal_connect_swapped(G_OBJECT(eb), "button-press-event", G_CALLBACK(scroll_close_cb), scroll_book); |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
282 | |
|
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
283 | /* Right arrow */ |
| 15094 | 284 | eb = gtk_event_box_new(); |
| 285 | gtk_box_pack_end(GTK_BOX(scroll_book->hbox), eb, FALSE, FALSE, 0); | |
|
39858
0f2be88d88e4
Fix some minor warnings.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39842
diff
changeset
|
286 | icon = g_themed_icon_new_from_names((char **)right_arrow_icon_names, |
|
0f2be88d88e4
Fix some minor warnings.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39842
diff
changeset
|
287 | G_N_ELEMENTS(right_arrow_icon_names)); |
|
39842
66da823fe9b3
Fix left/right arrows in scrollbook.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39673
diff
changeset
|
288 | scroll_book->right_arrow = |
|
66da823fe9b3
Fix left/right arrows in scrollbook.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39673
diff
changeset
|
289 | gtk_image_new_from_gicon(icon, GTK_ICON_SIZE_BUTTON); |
|
66da823fe9b3
Fix left/right arrows in scrollbook.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39673
diff
changeset
|
290 | g_object_unref(icon); |
| 15094 | 291 | gtk_container_add(GTK_CONTAINER(eb), scroll_book->right_arrow); |
| 292 | g_signal_connect_swapped(G_OBJECT(eb), "button-press-event", G_CALLBACK(scroll_right_cb), scroll_book); | |
| 293 | ||
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
294 | /* Count */ |
| 15094 | 295 | scroll_book->label = gtk_label_new(NULL); |
| 296 | gtk_box_pack_end(GTK_BOX(scroll_book->hbox), scroll_book->label, FALSE, FALSE, 0); | |
| 297 | ||
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
298 | /* Left arrow */ |
| 15094 | 299 | eb = gtk_event_box_new(); |
| 300 | gtk_box_pack_end(GTK_BOX(scroll_book->hbox), eb, FALSE, FALSE, 0); | |
|
39858
0f2be88d88e4
Fix some minor warnings.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39842
diff
changeset
|
301 | icon = g_themed_icon_new_from_names((char **)left_arrow_icon_names, |
|
0f2be88d88e4
Fix some minor warnings.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39842
diff
changeset
|
302 | G_N_ELEMENTS(left_arrow_icon_names)); |
|
39842
66da823fe9b3
Fix left/right arrows in scrollbook.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39673
diff
changeset
|
303 | scroll_book->left_arrow = |
|
66da823fe9b3
Fix left/right arrows in scrollbook.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39673
diff
changeset
|
304 | gtk_image_new_from_gicon(icon, GTK_ICON_SIZE_BUTTON); |
|
66da823fe9b3
Fix left/right arrows in scrollbook.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39673
diff
changeset
|
305 | g_object_unref(icon); |
| 15094 | 306 | gtk_container_add(GTK_CONTAINER(eb), scroll_book->left_arrow); |
| 307 | g_signal_connect_swapped(G_OBJECT(eb), "button-press-event", G_CALLBACK(scroll_left_cb), scroll_book); | |
| 308 | ||
| 309 | gtk_box_pack_start(GTK_BOX(scroll_book), scroll_book->hbox, FALSE, FALSE, 0); | |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
310 | |
| 15094 | 311 | scroll_book->notebook = gtk_notebook_new(); |
| 312 | gtk_notebook_set_show_tabs(GTK_NOTEBOOK(scroll_book->notebook), FALSE); | |
| 313 | gtk_notebook_set_show_border(GTK_NOTEBOOK(scroll_book->notebook), FALSE); | |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
314 | |
| 15094 | 315 | gtk_box_pack_start(GTK_BOX(scroll_book), scroll_book->notebook, TRUE, TRUE, 0); |
|
21763
95ce28fc860a
Patch from DB42 to add a little '×' in a scrollbook. I edited the patch in
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21760
diff
changeset
|
316 | |
|
15190
4ce2829864f0
[gaim-migrate @ 17914]
Mark Doliner <markdoliner@pidgin.im>
parents:
15120
diff
changeset
|
317 | g_signal_connect_swapped(G_OBJECT(scroll_book->notebook), "remove", G_CALLBACK(page_count_change_cb), scroll_book); |
| 15094 | 318 | g_signal_connect(G_OBJECT(scroll_book->notebook), "switch-page", G_CALLBACK(switch_page_cb), scroll_book); |
| 15243 | 319 | gtk_widget_show_all(scroll_book->notebook); |
| 15094 | 320 | } |
| 321 | ||
| 322 | GtkWidget * | |
| 15577 | 323 | pidgin_scroll_book_new() |
| 15094 | 324 | { |
| 15577 | 325 | return g_object_new(PIDGIN_TYPE_SCROLL_BOOK, NULL); |
| 15094 | 326 | } |