2 * about.c - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005-2011 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2006-2011 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
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.
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.
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
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 * About dialog and credits.
31 #include "geanywraplabel.h"
37 #define HEADER "<span size=\"larger\" weight=\"bold\">Geany %s</span>"
38 #define INFO "<span size=\"larger\" weight=\"bold\">%s</span>"
39 #define CODENAME "<span weight=\"bold\">\"" GEANY_CODENAME "\"</span>"
40 #define BUILDDATE "<span size=\"smaller\">%s</span>"
41 #define COPYRIGHT "Copyright (c) 2005-2011\nNick Treleaven\nColomban Wendling\nEnrico Tröger\nFrank Lanitz\nAll rights reserved."
43 const gchar
*translators
[][2] = {
44 { "ast", "Marcos Costales <marcoscostales@gmail.com>"},
45 { "be_BY", "Yura Siamashka <yurand2@gmail.com>" },
46 { "bg", "Dilyan Rusev <dilyanrusev@gmail.com>" },
47 { "ca_ES", "Toni Garcia-Navarro <topi@elpiset.net>" },
48 { "cs_CZ", "Petr Messner <messa@messa.cz>\nAnna Talianova <anickat1@gmail.com>" },
49 { "de_DE", "Frank Lanitz <frank@frank.uvena.de>\nDominic Hopf <dmaphy@googlemail.com>" },
50 { "el", "Stavros Temertzidis <bullgr@gmail.com>" },
51 { "en_GB", "Jeff Bailes <thepizzaking@gmail.com>" },
52 { "es", "Antonio Jiménez González <tonificante@hotmail.com>\nLucas Vieites <lucasvieites@gmail.com>" },
53 { "fa", "Moein Owhadi Kareshk <moein.owhadi@gmail.com>"},
54 { "fi", "Harri Koskinen <harri@fastmonkey.org>\nJari Rahkonen <jari.rahkonen@pp1.inet.fi>" },
55 { "fr", "Jean-Philippe Moal <skateinmars@skateinmars.net>" },
56 { "gl", "José Manuel Castroagudín Silva <chavescesures@gmail.com>"},
57 { "hu", "Gabor Kmetyko <kg_kilo@freemail.hu>" },
58 { "it", "Max Baldinelli <m.baldinelli@agora.it>,\nDario Santomarco <dariello@yahoo.it>" },
59 { "ja", "Tarot Osuji <tarot@sdf.lonestar.org>\nChikahiro Masami <cmasa.z321@gmail.com>" },
60 { "ko", "Park Jang-heon <dotkabi@gmail.com>" },
61 { "kk", "Baurzhan Muftakhidinov <baurthefirst@gmail.com>"},
62 { "lb", "Laurent Hoeltgen <hoeltgman@gmail.com>" },
63 { "nl", "Peter Scholtens <peter.scholtens@xs4all.nl>\nAyke van Laethem <aykevanlaethem@gmail.com>" },
64 { "pl_PL", "Jarosław Foksa <jfoksa@gmail.com>" },
65 { "pt_BR", "Alexandra Moreire <alexandream@gmail.com>\n"
66 "Adrovane Marques Kade <adrovane@gmail.com>\n"
67 "Rafael Peregrino da Silva <rperegrino@linuxnewmedia.com.br>"},
68 { "ro", "Alex Eftimie <alex@rosedu.org>" },
69 { "ru_RU", "brahmann_ <brahmann@pisem.net>,\nNikita E. Shalaev <nshalaev@eu.spb.ru>" },
70 { "sl", "Jože Klepec <joze.klepec@siol.net>"},
71 { "sv", "Tony Mattsson <superxorn@gmail.com>" },
72 { "tr", "Gürkan Gür <seqizz@gmail.com>"},
73 { "uk", "Boris Dibrov <dibrov.bor@gmail.com>" },
74 { "vi_VN", "Clytie Siddall <clytie@riverland.net.au>" },
75 { "zh_CN", "Dormouse Young <mouselinux@163.com>,\nXhacker Liu <liu.dongyuan@gmail.com>" },
76 { "zh_TW", "KoViCH <kovich.ian@gmail.com>\nWei-Lun Chao <chaoweilun@gmail.com>" }
78 static const gint translators_len
= G_N_ELEMENTS(translators
);
80 const gchar
*prev_translators
[][2] = {
81 { "es", "Damián Viano <debian@damianv.com.ar>\nNacho Cabanes <ncabanes@gmail.com>" },
82 { "pl_PL", "Jacek Wolszczak <shutdownrunner@o2.pl>" },
83 { "nl", "Kurt De Bree <kdebree@telenet.be>" }
85 static const gint prev_translators_len
= G_N_ELEMENTS(prev_translators
);
87 static const gchar
*contributors
=
89 "Alexander Rodin, Alexey Antipov, Andrew Rowland, Anh Phạm, blackdog, Bo Lorentsen, Bob Doan, "
90 "Bronisław Białek, Can Koy, Catalin Marinas, "
91 "Chris Macksey, Christoph Berg, Colomban Wendling, Conrad Steenberg, Daniel Richard G., "
92 "Daniel Marjamaki, Dave Moore, "
93 "Dimitar Zhekov, Dirk Weber, Elias Pschernig, Eric Forgeot, "
94 "Erik de Castro Lopo, Eugene Arshinov, Felipe Pena, François Cami, "
95 "Giuseppe Torelli, Guillaume de Rorthais, Guillaume Hoffmann, Herbert Voss, Jason Oster, "
96 "Jean-François Wauthy, Jeff Pohlmeyer, Jesse Mayes, Jiří Techet, "
97 "John Gabriele, Jon Senior, Jon Strait, Josef Whiter, "
98 "Jörn Reder, Kelvin Gardiner, Kevin Ellwood, Kristoffer A. Tjernås, Lex Trotman, "
99 "Manuel Bua, Mário Silva, Marko Peric, Matthew Brush, Matti Mårds, "
100 "Moritz Barsnick, Nicolas Sierro, Ondrej Donek, Peter Strand, Philipp Gildein, "
101 "Pierre Joye, Rob van der Linde, "
102 "Robert McGinley, Roland Baudin, Ross McKay, S Jagannathan, Saleem Abdulrasool, "
103 "Sebastian Kraft, Shiv, Slava Semushin, Stefan Oltmanns, Tamim, Taylor Venable, "
104 "Thomas Huth, Thomas Martitz, Tomás Vírseda, "
105 "Tyler Mulligan, Walery Studennikov, Yura Siamashka";
108 static void header_eventbox_style_set(GtkWidget
*widget
);
109 static void header_label_style_set(GtkWidget
*widget
);
110 static void homepage_clicked(GtkButton
*button
, gpointer data
);
113 #define ROW(text, row, col, x_align, y_padding, col_span) \
114 label = gtk_label_new((text)); \
115 gtk_table_attach(GTK_TABLE(table), label, (col), (col) + (col_span) + 1, (row), (row) + 1, \
116 (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (GTK_FILL), 0, (y_padding)); \
117 gtk_label_set_use_markup(GTK_LABEL(label), TRUE); \
118 gtk_misc_set_alignment(GTK_MISC(label), (x_align), 0);
121 static GtkWidget
*create_dialog(void)
124 GtkWidget
*header_image
;
125 GtkWidget
*header_label
;
126 GtkWidget
*label_info
;
127 GtkWidget
*codename_label
;
128 GtkWidget
*builddate_label
;
129 GtkWidget
*url_button
;
130 GtkWidget
*cop_label
;
132 GtkWidget
*license_textview
;
135 GtkWidget
*credits_scrollwin
;
137 GtkWidget
*license_scrollwin
;
139 GtkWidget
*header_hbox
;
140 GtkWidget
*header_eventbox
;
143 gchar
*license_text
= NULL
;
148 dialog
= gtk_dialog_new();
150 /* configure dialog */
151 gtk_window_set_transient_for(GTK_WINDOW(dialog
), GTK_WINDOW(main_widgets
.window
));
152 gtk_window_set_position(GTK_WINDOW(dialog
), GTK_WIN_POS_CENTER_ON_PARENT
);
153 gtk_window_set_title(GTK_WINDOW(dialog
), _("About Geany"));
154 gtk_widget_set_name(dialog
, "GeanyDialog");
155 gtk_dialog_add_button(GTK_DIALOG(dialog
), GTK_STOCK_CLOSE
, GTK_RESPONSE_CLOSE
);
156 gtk_dialog_set_default_response(GTK_DIALOG(dialog
), GTK_RESPONSE_CLOSE
);
157 gtk_dialog_set_has_separator(GTK_DIALOG(dialog
), FALSE
);
158 g_signal_connect(dialog
, "key-press-event", G_CALLBACK(gb_on_key_pressed
), NULL
);
161 header_eventbox
= gtk_event_box_new();
162 gtk_widget_show(header_eventbox
);
163 header_hbox
= gtk_hbox_new(FALSE
, 12);
164 gtk_container_set_border_width(GTK_CONTAINER(header_hbox
), 4);
165 gtk_widget_show(header_hbox
);
166 gtk_container_add(GTK_CONTAINER(header_eventbox
), header_hbox
);
167 header_image
= gtk_image_new();
168 gtk_box_pack_start(GTK_BOX(header_hbox
), header_image
, FALSE
, FALSE
, 0);
169 header_label
= gtk_label_new(NULL
);
170 gtk_label_set_use_markup(GTK_LABEL(header_label
), TRUE
);
171 /* print the subversion revision generated by ./configure if it is available */
172 g_snprintf(buffer
, sizeof(buffer
), HEADER
, main_get_version_string());
173 gtk_label_set_markup(GTK_LABEL(header_label
), buffer
);
174 gtk_widget_show(header_label
);
175 gtk_box_pack_start(GTK_BOX(header_hbox
), header_label
, FALSE
, FALSE
, 0);
176 header_eventbox_style_set(header_eventbox
);
177 header_label_style_set(header_label
);
178 g_signal_connect_after(header_eventbox
, "style-set", G_CALLBACK(header_eventbox_style_set
), NULL
);
179 g_signal_connect_after(header_label
, "style-set", G_CALLBACK(header_label_style_set
), NULL
);
180 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog
)->vbox
), header_eventbox
, FALSE
, FALSE
, 0);
183 icon
= ui_new_pixbuf_from_inline(GEANY_IMAGE_LOGO
);
184 gtk_image_set_from_pixbuf(GTK_IMAGE(header_image
), icon
);
185 gtk_window_set_icon(GTK_WINDOW(dialog
), icon
);
186 g_object_unref(icon
); /* free our reference */
188 /* create notebook */
189 notebook
= gtk_notebook_new();
190 gtk_widget_show(notebook
);
191 gtk_container_set_border_width(GTK_CONTAINER(notebook
), 2);
192 gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog
)->vbox
), notebook
, TRUE
, TRUE
, 0);
194 /* create "Info" tab */
195 info_box
= gtk_vbox_new(FALSE
, 0);
196 gtk_container_set_border_width(GTK_CONTAINER(info_box
), 6);
197 gtk_widget_show(info_box
);
199 label_info
= gtk_label_new(NULL
);
200 gtk_label_set_justify(GTK_LABEL(label_info
), GTK_JUSTIFY_CENTER
);
201 gtk_label_set_selectable(GTK_LABEL(label_info
), TRUE
);
202 gtk_label_set_use_markup(GTK_LABEL(label_info
), TRUE
);
203 g_snprintf(buffer
, sizeof(buffer
), INFO
, _("A fast and lightweight IDE"));
204 gtk_label_set_markup(GTK_LABEL(label_info
), buffer
);
205 gtk_misc_set_padding(GTK_MISC(label_info
), 2, 11);
206 gtk_widget_show(label_info
);
207 gtk_box_pack_start(GTK_BOX(info_box
), label_info
, FALSE
, FALSE
, 0);
210 codename_label
= gtk_label_new(NULL
);
211 gtk_label_set_justify(GTK_LABEL(codename_label
), GTK_JUSTIFY_CENTER
);
212 gtk_label_set_selectable(GTK_LABEL(codename_label
), TRUE
);
213 gtk_label_set_use_markup(GTK_LABEL(codename_label
), TRUE
);
214 gtk_label_set_markup(GTK_LABEL(codename_label
), CODENAME
);
215 gtk_misc_set_padding(GTK_MISC(codename_label
), 2, 8);
216 gtk_widget_show(codename_label
);
217 gtk_box_pack_start(GTK_BOX(info_box
), codename_label
, FALSE
, FALSE
, 0);
219 /* build date label */
220 builddate_label
= gtk_label_new(NULL
);
221 gtk_label_set_justify(GTK_LABEL(builddate_label
), GTK_JUSTIFY_CENTER
);
222 gtk_label_set_selectable(GTK_LABEL(builddate_label
), TRUE
);
223 gtk_label_set_use_markup(GTK_LABEL(builddate_label
), TRUE
);
224 g_snprintf(buffer2
, sizeof(buffer2
), _("(built on or after %s)"), __DATE__
);
225 g_snprintf(buffer
, sizeof(buffer
), BUILDDATE
, buffer2
);
226 gtk_label_set_markup(GTK_LABEL(builddate_label
), buffer
);
227 gtk_misc_set_padding(GTK_MISC(builddate_label
), 2, 2);
228 gtk_widget_show(builddate_label
);
229 gtk_box_pack_start(GTK_BOX(info_box
), builddate_label
, FALSE
, FALSE
, 0);
231 box
= gtk_hbutton_box_new();
232 url_button
= gtk_button_new();
233 gtk_button_set_relief(GTK_BUTTON(url_button
), GTK_RELIEF_NONE
);
234 g_signal_connect(url_button
, "clicked", G_CALLBACK(homepage_clicked
), (gpointer
)GEANY_HOMEPAGE
);
235 label
= gtk_label_new(NULL
);
236 gtk_label_set_text(GTK_LABEL(label
), GEANY_HOMEPAGE
);
237 gtk_widget_show(label
);
238 gtk_container_add(GTK_CONTAINER(url_button
), label
);
239 gtk_widget_show(url_button
);
240 gtk_box_pack_start(GTK_BOX(box
), url_button
, FALSE
, FALSE
, 0);
241 gtk_widget_show(box
);
242 gtk_box_pack_start(GTK_BOX(info_box
), box
, FALSE
, FALSE
, 10);
244 /* copyright label */
245 cop_label
= gtk_label_new(NULL
);
246 gtk_label_set_justify(GTK_LABEL(cop_label
), GTK_JUSTIFY_CENTER
);
247 gtk_label_set_selectable(GTK_LABEL(cop_label
), FALSE
);
248 gtk_label_set_use_markup(GTK_LABEL(cop_label
), TRUE
);
249 gtk_label_set_markup(GTK_LABEL(cop_label
), COPYRIGHT
);
250 gtk_misc_set_padding(GTK_MISC(cop_label
), 2, 10);
251 gtk_widget_show(cop_label
);
252 gtk_box_pack_start(GTK_BOX(info_box
), cop_label
, FALSE
, FALSE
, 0);
253 /*gtk_container_add(GTK_CONTAINER(info_box), cop_label); */
255 label
= gtk_label_new(_("Info"));
256 gtk_widget_show(label
);
257 gtk_widget_show_all(info_box
);
258 gtk_notebook_append_page(GTK_NOTEBOOK(notebook
), info_box
, label
);
260 /* create "Credits" tab */
261 credits_scrollwin
= gtk_scrolled_window_new(NULL
, NULL
);
262 gtk_container_set_border_width(GTK_CONTAINER(credits_scrollwin
), 10);
263 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(credits_scrollwin
),
264 GTK_POLICY_NEVER
, GTK_POLICY_AUTOMATIC
);
266 table
= gtk_table_new(20 + translators_len
+ prev_translators_len
, 3, FALSE
);
267 gtk_table_set_col_spacings(GTK_TABLE(table
), 10);
270 g_snprintf(buffer
, sizeof(buffer
),
271 "<span size=\"larger\" weight=\"bold\">%s</span>", _("Developers"));
272 label
= gtk_label_new(buffer
);
273 gtk_table_attach(GTK_TABLE(table
), label
, 0, 2, row
, row
+ 1,
274 (GtkAttachOptions
) (GTK_FILL
),
275 (GtkAttachOptions
) (0), 0, 5);
276 gtk_label_set_use_markup(GTK_LABEL(label
), TRUE
);
277 gtk_misc_set_alignment(GTK_MISC(label
), 0, 0);
280 g_snprintf(buffer
, sizeof(buffer
), "Nick Treleaven - %s", _("maintainer"));
281 ROW(buffer
, row
, 0, 0, 0, 1);
283 ROW("<nick.treleaven@btinternet.com>", row
, 0, 0, 0, 1);
285 ROW("", row
, 0, 0, 0, 0);
288 g_snprintf(buffer
, sizeof(buffer
), "Colomban Wendling - %s", _("developer"));
289 ROW(buffer
, row
, 0, 0, 0, 1);
291 ROW("<lists.ban@herbesfolles.org>", row
, 0, 0, 0, 1);
293 ROW("", row
, 0, 0, 0, 0);
296 g_snprintf(buffer
, sizeof(buffer
), "Enrico Tröger - %s", _("developer"));
297 ROW(buffer
, row
, 0, 0, 0, 1);
299 ROW("<enrico.troeger@uvena.de>", row
, 0, 0, 0, 1);
301 ROW("", row
, 0, 0, 0, 0);
304 g_snprintf(buffer
, sizeof(buffer
), "Frank Lanitz - %s", _("translation maintainer"));
305 ROW(buffer
, row
, 0, 0, 0, 1);
307 ROW("<frank@frank.uvena.de>", row
, 0, 0, 0, 1);
309 ROW("", row
, 0, 0, 0, 0);
312 g_snprintf(buffer
, sizeof(buffer
),
313 "<span size=\"larger\" weight=\"bold\">%s</span>", _("Translators"));
314 label
= gtk_label_new(buffer
);
315 gtk_table_attach(GTK_TABLE(table
), label
, 0, 2, row
, row
+ 1,
316 (GtkAttachOptions
) (GTK_FILL
),
317 (GtkAttachOptions
) (0), 0, 5);
318 gtk_label_set_use_markup(GTK_LABEL(label
), TRUE
);
319 gtk_misc_set_alignment(GTK_MISC(label
), 0, 0.5);
322 for (i
= 0; i
< translators_len
; i
++)
324 ROW(translators
[i
][0], row
, 0, 1, 4, 0);
325 ROW(translators
[i
][1], row
, 1, 0, 4, 0);
329 ROW("", row
, 0, 0, 0, 0);
332 g_snprintf(buffer
, sizeof(buffer
),
333 "<span size=\"larger\" weight=\"bold\">%s</span>", _("Previous Translators"));
334 label
= gtk_label_new(buffer
);
335 gtk_table_attach(GTK_TABLE(table
), label
, 0, 2, row
, row
+ 1,
336 (GtkAttachOptions
) (GTK_FILL
),
337 (GtkAttachOptions
) (0), 0, 5);
338 gtk_label_set_use_markup(GTK_LABEL(label
), TRUE
);
339 gtk_misc_set_alignment(GTK_MISC(label
), 0, 0.5);
342 for (i
= 0; i
< prev_translators_len
; i
++)
344 ROW(prev_translators
[i
][0], row
, 0, 1, 4, 0);
345 ROW(prev_translators
[i
][1], row
, 1, 0, 4, 0);
350 ROW("", row
, 0, 0, 0, 0);
353 g_snprintf(buffer
, sizeof(buffer
),
354 "<span size=\"larger\" weight=\"bold\">%s</span>", _("Contributors"));
355 label
= gtk_label_new(buffer
);
356 gtk_table_attach(GTK_TABLE(table
), label
, 0, 2, row
, row
+ 1,
357 (GtkAttachOptions
) (GTK_FILL
),
358 (GtkAttachOptions
) (0), 0, 5);
359 gtk_label_set_use_markup(GTK_LABEL(label
), TRUE
);
360 gtk_misc_set_alignment(GTK_MISC(label
), 0, 0.5);
363 g_snprintf(buffer
, sizeof(buffer
),
364 _("Some of the many contributors (for a more detailed list, see the file %s):"),
371 label
= geany_wrap_label_new(buffer
);
372 gtk_table_attach(GTK_TABLE(table
), label
, 0, 2, row
, row
+ 1,
373 (GtkAttachOptions
) (GTK_FILL
),
374 (GtkAttachOptions
) (0), 0, 5);
375 gtk_label_set_use_markup(GTK_LABEL(label
), TRUE
);
376 gtk_misc_set_alignment(GTK_MISC(label
), 0, 0.5);
379 label
= geany_wrap_label_new(contributors
);
380 gtk_table_attach(GTK_TABLE(table
), label
, 0, 2, row
, row
+ 1,
381 (GtkAttachOptions
) (GTK_FILL
| GTK_EXPAND
),
382 (GtkAttachOptions
) (0), 0, 5);
383 gtk_label_set_use_markup(GTK_LABEL(label
), TRUE
);
384 gtk_misc_set_alignment(GTK_MISC(label
), 0, 0.5);
387 gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(credits_scrollwin
), table
);
388 gtk_viewport_set_shadow_type(GTK_VIEWPORT(gtk_widget_get_parent(table
)), GTK_SHADOW_NONE
);
389 gtk_widget_show_all(table
);
390 label
= gtk_label_new(_("Credits"));
391 gtk_widget_show(label
);
392 gtk_notebook_append_page(GTK_NOTEBOOK(notebook
), credits_scrollwin
, label
);
394 /* create "License" tab */
395 license_scrollwin
= gtk_scrolled_window_new(NULL
, NULL
);
396 gtk_container_set_border_width(GTK_CONTAINER(license_scrollwin
), 6);
397 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(license_scrollwin
),
398 GTK_POLICY_AUTOMATIC
, GTK_POLICY_AUTOMATIC
);
399 license_textview
= gtk_text_view_new();
400 gtk_text_view_set_editable(GTK_TEXT_VIEW(license_textview
), FALSE
);
401 gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(license_textview
), FALSE
);
402 gtk_widget_show(license_textview
);
403 gtk_container_add(GTK_CONTAINER(license_scrollwin
), license_textview
);
404 label
= gtk_label_new(_("License"));
405 gtk_widget_show(label
);
407 g_snprintf(buffer
, sizeof(buffer
), "%s" G_DIR_SEPARATOR_S
"GPL-2", app
->datadir
);
409 g_file_get_contents(buffer
, &license_text
, NULL
, NULL
);
410 if (license_text
== NULL
)
412 license_text
= g_strdup(
413 _("License text could not be found, please visit http://www.gnu.org/licenses/gpl-2.0.txt to view it online."));
415 tb
= gtk_text_view_get_buffer(GTK_TEXT_VIEW(license_textview
));
416 gtk_text_buffer_set_text(tb
, license_text
, strlen(license_text
));
418 g_free(license_text
);
420 gtk_notebook_append_page(GTK_NOTEBOOK(notebook
), license_scrollwin
, label
);
422 gtk_widget_show_all(dialog
);
427 void about_dialog_show(void)
431 dialog
= create_dialog();
433 gtk_dialog_run(GTK_DIALOG(dialog
));
434 gtk_widget_destroy(dialog
);
438 static void header_eventbox_style_set(GtkWidget
*widget
)
440 static gint recursive
= 0;
447 style
= gtk_widget_get_style(widget
);
448 gtk_widget_modify_bg(widget
, GTK_STATE_NORMAL
, &style
->bg
[GTK_STATE_SELECTED
]);
453 static void header_label_style_set(GtkWidget
*widget
)
455 static gint recursive
= 0;
462 style
= gtk_widget_get_style(widget
);
463 gtk_widget_modify_fg(widget
, GTK_STATE_NORMAL
, &style
->fg
[GTK_STATE_SELECTED
]);
468 static void homepage_clicked(GtkButton
*button
, gpointer data
)
470 utils_open_browser(data
);