Mercurial > pidgin
comparison plugins/notify.c @ 5530:2c4c975620f0
[gaim-migrate @ 5930]
Okay, several changes in this commit.
- We now have gtkprefs.h.
- We have a place where we can add UI prefs.
- show_prefs() -> gaim_gtk_prefs_show().
- make_frame() -> gaim_gtk_make_frame().
- The debug window is the first thing to have prefs. You can even
turn off the toolbar if you edit ~/.gaim/prefs.xml.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 26 May 2003 08:30:48 +0000 |
parents | ad445074d239 |
children | dae79aefac8d |
comparison
equal
deleted
inserted
replaced
5529:e7747cae9710 | 5530:2c4c975620f0 |
---|---|
568 GtkWidget *vbox, *hbox; | 568 GtkWidget *vbox, *hbox; |
569 GtkWidget *toggle, *button; | 569 GtkWidget *toggle, *button; |
570 ret = gtk_vbox_new(FALSE, 18); | 570 ret = gtk_vbox_new(FALSE, 18); |
571 gtk_container_set_border_width (GTK_CONTAINER (ret), 12); | 571 gtk_container_set_border_width (GTK_CONTAINER (ret), 12); |
572 | 572 |
573 vbox = make_frame(ret, _("Notify For")); | 573 vbox = gaim_gtk_make_frame(ret, _("Notify For")); |
574 toggle = gtk_check_button_new_with_mnemonic(_("_IM windows")); | 574 toggle = gtk_check_button_new_with_mnemonic(_("_IM windows")); |
575 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); | 575 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); |
576 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), type & TYPE_IM); | 576 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), type & TYPE_IM); |
577 g_signal_connect(G_OBJECT(toggle), "toggled", G_CALLBACK(options), GINT_TO_POINTER(8)); | 577 g_signal_connect(G_OBJECT(toggle), "toggled", G_CALLBACK(options), GINT_TO_POINTER(8)); |
578 | 578 |
580 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); | 580 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); |
581 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), type & TYPE_CHAT); | 581 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), type & TYPE_CHAT); |
582 g_signal_connect(G_OBJECT(toggle), "toggled", G_CALLBACK(options), GINT_TO_POINTER(9)); | 582 g_signal_connect(G_OBJECT(toggle), "toggled", G_CALLBACK(options), GINT_TO_POINTER(9)); |
583 | 583 |
584 /*--------------*/ | 584 /*--------------*/ |
585 vbox = make_frame(ret, _("Notification Methods")); | 585 vbox = gaim_gtk_make_frame(ret, _("Notification Methods")); |
586 hbox = gtk_hbox_new(FALSE, 18); | 586 hbox = gtk_hbox_new(FALSE, 18); |
587 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); | 587 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
588 toggle = gtk_check_button_new_with_mnemonic(_("Prepend _string into window title (hit enter to save):")); | 588 toggle = gtk_check_button_new_with_mnemonic(_("Prepend _string into window title (hit enter to save):")); |
589 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), method & METHOD_STRING); | 589 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), method & METHOD_STRING); |
590 g_signal_connect(G_OBJECT(toggle), "toggled", G_CALLBACK(options), GINT_TO_POINTER(3)); | 590 g_signal_connect(G_OBJECT(toggle), "toggled", G_CALLBACK(options), GINT_TO_POINTER(3)); |
615 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), choice & NOTIFY_IN_FOCUS); | 615 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), choice & NOTIFY_IN_FOCUS); |
616 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); | 616 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); |
617 g_signal_connect(G_OBJECT(toggle), "toggled", G_CALLBACK(options), GINT_TO_POINTER(6)); | 617 g_signal_connect(G_OBJECT(toggle), "toggled", G_CALLBACK(options), GINT_TO_POINTER(6)); |
618 | 618 |
619 /*--------------*/ | 619 /*--------------*/ |
620 vbox = make_frame(ret, _("Notification Removal")); | 620 vbox = gaim_gtk_make_frame(ret, _("Notification Removal")); |
621 toggle = gtk_check_button_new_with_mnemonic(_("Remove when conversation window gains _focus")); | 621 toggle = gtk_check_button_new_with_mnemonic(_("Remove when conversation window gains _focus")); |
622 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); | 622 gtk_box_pack_start(GTK_BOX(vbox), toggle, FALSE, FALSE, 0); |
623 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), choice & NOTIFY_FOCUS); | 623 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), choice & NOTIFY_FOCUS); |
624 g_signal_connect(G_OBJECT(toggle), "toggled", G_CALLBACK(options), GINT_TO_POINTER(0)); | 624 g_signal_connect(G_OBJECT(toggle), "toggled", G_CALLBACK(options), GINT_TO_POINTER(0)); |
625 | 625 |