diff src/conversation.c @ 535:f03f041c1aa9

[gaim-migrate @ 545] fflewddur wrote a really cool patch to make buttons borderless, like the buttons in winaim. of course, unlike winaim, it's optional. :) committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 27 Jul 2000 17:48:15 +0000
parents 023c3851db0a
children c9f994ea5833
line wrap: on
line diff
--- a/src/conversation.c	Thu Jul 27 17:41:36 2000 +0000
+++ b/src/conversation.c	Thu Jul 27 17:48:15 2000 +0000
@@ -1282,7 +1282,24 @@
 	else
 		gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(wood), FALSE);
         state_lock = 0;
-        
+
+	/* use a slicker look if the user wants to */
+	if (display_options & OPT_DISP_COOL_LOOK)
+	{
+		gtk_button_set_relief(GTK_BUTTON(strike), GTK_RELIEF_NONE);
+		gtk_button_set_relief(GTK_BUTTON(normal), GTK_RELIEF_NONE);
+		gtk_button_set_relief(GTK_BUTTON(big), GTK_RELIEF_NONE);
+		gtk_button_set_relief(GTK_BUTTON(bold), GTK_RELIEF_NONE);
+		gtk_button_set_relief(GTK_BUTTON(italic), GTK_RELIEF_NONE);
+		gtk_button_set_relief(GTK_BUTTON(underline), GTK_RELIEF_NONE);
+		gtk_button_set_relief(GTK_BUTTON(speaker), GTK_RELIEF_NONE);
+		gtk_button_set_relief(GTK_BUTTON(wood), GTK_RELIEF_NONE);
+		gtk_button_set_relief(GTK_BUTTON(palette), GTK_RELIEF_NONE);
+		gtk_button_set_relief(GTK_BUTTON(link), GTK_RELIEF_NONE);
+		gtk_button_set_relief(GTK_BUTTON(font), GTK_RELIEF_NONE);
+		gtk_button_set_relief(GTK_BUTTON(small), GTK_RELIEF_NONE);
+	}
+	
 	gtk_widget_show(toolbar);
 	
 	c->bold = bold;
@@ -1347,7 +1364,17 @@
 	}
         block = gtk_button_new_with_label(_("Block"));
 
-
+	/* use a slicker look if the user wants to */
+	if (display_options & OPT_DISP_COOL_LOOK)
+	{
+		gtk_button_set_relief(GTK_BUTTON(send), GTK_RELIEF_NONE);
+		gtk_button_set_relief(GTK_BUTTON(info), GTK_RELIEF_NONE);
+		gtk_button_set_relief(GTK_BUTTON(warn), GTK_RELIEF_NONE);
+		gtk_button_set_relief(GTK_BUTTON(close), GTK_RELIEF_NONE);
+		gtk_button_set_relief(GTK_BUTTON(add), GTK_RELIEF_NONE);
+		gtk_button_set_relief(GTK_BUTTON(block), GTK_RELIEF_NONE);
+	}
+	
         bbox = gtk_hbox_new(TRUE, 0);
 	vbox = gtk_vbox_new(FALSE, 0);
 	vbox2 = gtk_vbox_new(FALSE, 0);