diff src/gtkconv.c @ 8811:7329d01bb770

[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 <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 26 Apr 2004 04:16:35 +0000
parents 1076cd8579ea
children 408d2f135146
line wrap: on
line diff
--- 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);