# HG changeset patch # User Mark Doliner # Date 1082952995 0 # Node ID 7329d01bb77078c54872d6b67629b528a5d8cc3f # Parent a7affa2e2986e74dcba6788c78188b2fb60f2924 [gaim-migrate @ 9573] A patch from Phil Snowberger to add a "None" option for the warn, info, add/remove, and send buttons in conversation windows. committer: Tailor Script diff -r a7affa2e2986 -r 7329d01bb770 COPYRIGHT --- a/COPYRIGHT Sun Apr 25 23:40:13 2004 +0000 +++ b/COPYRIGHT Mon Apr 26 04:16:35 2004 +0000 @@ -116,6 +116,7 @@ John Silvestri Alex Smith David Smock +Phil Snowberger Mark Spencer Lex Spoon Kevin Stange diff -r a7affa2e2986 -r 7329d01bb770 src/gtkconv.c --- a/src/gtkconv.c Sun Apr 25 23:40:13 2004 +0000 +++ b/src/gtkconv.c Mon Apr 26 04:16:35 2004 +0000 @@ -3291,6 +3291,7 @@ GaimConnection *gc; GaimGtkConversation *gtkconv; GaimGtkImPane *gtkim; + GaimButtonStyle button_type; gtkconv = GAIM_GTK_CONVERSATION(conv); gtkim = gtkconv->u.im; @@ -3371,6 +3372,13 @@ gaim_gtkconv_update_buttons_by_protocol(conv); + /* Check if the buttons should be visible or not */ + button_type = gaim_prefs_get_int("/gaim/gtk/conversations/im/button_type"); + if (button_type == GAIM_BUTTON_NONE) + gtk_widget_hide(gtkconv->bbox); + else + gtk_widget_show(gtkconv->bbox); + g_signal_connect(G_OBJECT(gtkim->warn), "clicked", G_CALLBACK(warn_cb), conv); g_signal_connect(G_OBJECT(gtkim->block), "clicked", @@ -3391,6 +3399,7 @@ GaimConnection *gc; GaimGtkConversation *gtkconv; GaimGtkChatPane *gtkchat; + GaimButtonStyle button_type; gtkconv = GAIM_GTK_CONVERSATION(conv); gtkchat = gtkconv->u.chat; @@ -3450,6 +3459,13 @@ gaim_gtkconv_update_buttons_by_protocol(conv); + /* Check if the buttons should be visible or not */ + button_type = gaim_prefs_get_int("/gaim/gtk/conversations/chat/button_type"); + if (button_type == GAIM_BUTTON_NONE) + gtk_widget_hide(gtkconv->bbox); + else + gtk_widget_show(gtkconv->bbox); + /* Callbacks */ g_signal_connect(G_OBJECT(gtkchat->invite), "clicked", G_CALLBACK(invite_cb), conv); diff -r a7affa2e2986 -r 7329d01bb770 src/gtkprefs.c --- a/src/gtkprefs.c Sun Apr 25 23:40:13 2004 +0000 +++ b/src/gtkprefs.c Mon Apr 26 04:16:35 2004 +0000 @@ -1012,6 +1012,7 @@ _("Pictures"), GAIM_BUTTON_IMAGE, _("Text"), GAIM_BUTTON_TEXT, _("Pictures and text"), GAIM_BUTTON_TEXT_IMAGE, + _("None"), GAIM_BUTTON_NONE, NULL); gtk_size_group_add_widget(sg, widge); @@ -1063,6 +1064,7 @@ _("Pictures"), GAIM_BUTTON_IMAGE, _("Text"), GAIM_BUTTON_TEXT, _("Pictures and text"), GAIM_BUTTON_TEXT_IMAGE, + _("None"), GAIM_BUTTON_NONE, NULL); gtk_size_group_add_widget(sg, dd);