pidgin/plugins/unity.c

changeset 35534
8e72593def2c
parent 35378
5d9e2581005b
child 35610
24b06c5e7760
child 37110
4309235d2a46
equal deleted inserted replaced
35533:8ca83abbc248 35534:8e72593def2c
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software 16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
18 */ 18 */
19 #include "internal.h" 19 #include "internal.h"
20 #include "version.h"
21 #include "account.h" 20 #include "account.h"
22 #include "savedstatuses.h" 21 #include "savedstatuses.h"
23 22 #include "version.h"
23
24 #include "gtk3compat.h"
24 #include "gtkplugin.h" 25 #include "gtkplugin.h"
25 #include "gtkconv.h" 26 #include "gtkconv.h"
26 #include "gtkutils.h" 27 #include "gtkutils.h"
27 28
28 #include <unity.h> 29 #include <unity.h>
429 get_config_frame(PurplePlugin *plugin) 430 get_config_frame(PurplePlugin *plugin)
430 { 431 {
431 GtkWidget *ret = NULL, *frame = NULL; 432 GtkWidget *ret = NULL, *frame = NULL;
432 GtkWidget *vbox = NULL, *toggle = NULL; 433 GtkWidget *vbox = NULL, *toggle = NULL;
433 434
434 ret = gtk_vbox_new(FALSE, 18); 435 ret = gtk_box_new(GTK_ORIENTATION_VERTICAL, 18);
435 gtk_container_set_border_width(GTK_CONTAINER (ret), 12); 436 gtk_container_set_border_width(GTK_CONTAINER (ret), 12);
436 437
437 /* Alerts */ 438 /* Alerts */
438 439
439 frame = pidgin_make_frame(ret, _("Chatroom alerts")); 440 frame = pidgin_make_frame(ret, _("Chatroom alerts"));
440 vbox = gtk_vbox_new(FALSE, 5); 441 vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5);
441 gtk_container_add(GTK_CONTAINER(frame), vbox); 442 gtk_container_add(GTK_CONTAINER(frame), vbox);
442 443
443 toggle = gtk_check_button_new_with_mnemonic(_("Chatroom message alerts _only where someone says your username")); 444 toggle = gtk_check_button_new_with_mnemonic(_("Chatroom message alerts _only where someone says your username"));
444 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); 445 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0);
445 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), 446 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle),
448 G_CALLBACK(alert_config_cb), NULL); 449 G_CALLBACK(alert_config_cb), NULL);
449 450
450 /* Launcher integration */ 451 /* Launcher integration */
451 452
452 frame = pidgin_make_frame(ret, _("Launcher Icon")); 453 frame = pidgin_make_frame(ret, _("Launcher Icon"));
453 vbox = gtk_vbox_new(FALSE, 5); 454 vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5);
454 gtk_container_add(GTK_CONTAINER(frame), vbox); 455 gtk_container_add(GTK_CONTAINER(frame), vbox);
455 456
456 toggle = gtk_radio_button_new_with_mnemonic(NULL, _("_Disable launcher integration")); 457 toggle = gtk_radio_button_new_with_mnemonic(NULL, _("_Disable launcher integration"));
457 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); 458 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0);
458 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), 459 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle),
477 G_CALLBACK(launcher_config_cb), GUINT_TO_POINTER(LAUNCHER_COUNT_SOURCES)); 478 G_CALLBACK(launcher_config_cb), GUINT_TO_POINTER(LAUNCHER_COUNT_SOURCES));
478 479
479 /* Messaging menu integration */ 480 /* Messaging menu integration */
480 481
481 frame = pidgin_make_frame(ret, _("Messaging Menu")); 482 frame = pidgin_make_frame(ret, _("Messaging Menu"));
482 vbox = gtk_vbox_new(FALSE, 5); 483 vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5);
483 gtk_container_add(GTK_CONTAINER(frame), vbox); 484 gtk_container_add(GTK_CONTAINER(frame), vbox);
484 485
485 toggle = gtk_radio_button_new_with_mnemonic(NULL, 486 toggle = gtk_radio_button_new_with_mnemonic(NULL,
486 _("Show number of _unread messages for conversations in messaging menu")); 487 _("Show number of _unread messages for conversations in messaging menu"));
487 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); 488 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0);

mercurial