changeset 656:732ee4f6f541

[gaim-migrate @ 666] the changes didn't look good, i'm changing it back for now. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 10 Aug 2000 07:25:08 +0000
parents 6ba20a0089d8
children 4bbc103a3294
files src/plugins.c
diffstat 1 files changed, 13 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins.c	Thu Aug 10 05:02:01 2000 +0000
+++ b/src/plugins.c	Thu Aug 10 07:25:08 2000 +0000
@@ -45,11 +45,6 @@
 #include <stdlib.h>
 #include <gtk/gtk.h>
 #include "gaim.h"
-#include "pixmaps/gnome_add.xpm"
-#include "pixmaps/gnome_close.xpm"
-#include "pixmaps/gnome_preferences.xpm"
-#include "pixmaps/gnome_remove.xpm"
-#include "pixmaps/ok.xpm"
 
 #include <dlfcn.h>
 
@@ -130,7 +125,6 @@
 			"clicked", GTK_SIGNAL_FUNC(destroy_plugins), NULL);
 
 	g_free(buf);
-
 	gtk_widget_show(plugin_dialog);
 	gdk_window_raise(plugin_dialog->window);   
 }
@@ -268,7 +262,7 @@
 	aol_icon(plugwindow->window);
 	gtk_container_border_width(GTK_CONTAINER(plugwindow), 10);
 	gtk_window_set_title(GTK_WINDOW(plugwindow), _("Gaim - Plugins"));
-	gtk_widget_set_usize(plugwindow, -1, 250);
+	gtk_widget_set_usize(plugwindow, 400, 250);
 	gtk_signal_connect(GTK_OBJECT(plugwindow), "destroy",
 			   GTK_SIGNAL_FUNC(hide_plugins), NULL);
 
@@ -296,33 +290,33 @@
 	gtk_text_set_word_wrap(GTK_TEXT(plugtext), TRUE);
 	gtk_text_set_editable(GTK_TEXT(plugtext), FALSE);
 
-	add = picture_button(plugwindow, _("Add Plugin"), gnome_add_xpm);
+	add = gtk_button_new_with_label(_("Load Plugin"));
 	gtk_signal_connect(GTK_OBJECT(add), "clicked",
 			   GTK_SIGNAL_FUNC(load_file), NULL);
 	gtk_box_pack_start(GTK_BOX(botbox), add, TRUE, FALSE, 5);
+	if (display_options & OPT_DISP_COOL_LOOK)
+		gtk_button_set_relief(GTK_BUTTON(add), GTK_RELIEF_NONE);
 
-	config = picture_button(plugwindow, _("Configure Plugin"), gnome_preferences_xpm);
+	config = gtk_button_new_with_label(_("Configure Plugin"));
 	gtk_widget_set_sensitive(config, 0);
 	gtk_box_pack_start(GTK_BOX(botbox), config, TRUE, FALSE, 5);
+	if (display_options & OPT_DISP_COOL_LOOK)
+		gtk_button_set_relief(GTK_BUTTON(config), GTK_RELIEF_NONE);
 
-	remove = picture_button(plugwindow, _("Remove Plugin"), gnome_remove_xpm);
+	remove = gtk_button_new_with_label(_("Unload Plugin"));
 	gtk_signal_connect(GTK_OBJECT(remove), "clicked",
 			   GTK_SIGNAL_FUNC(unload), pluglist);
 	gtk_box_pack_start(GTK_BOX(botbox), remove, TRUE, FALSE, 5);
+	if (display_options & OPT_DISP_COOL_LOOK)
+		gtk_button_set_relief(GTK_BUTTON(remove), GTK_RELIEF_NONE);
 
-	close = picture_button(plugwindow, _("Close"), gnome_close_xpm);
+	close = gtk_button_new_with_label(_("Close"));
 	gtk_signal_connect(GTK_OBJECT(close), "clicked",
 			   GTK_SIGNAL_FUNC(hide_plugins), NULL);
 	gtk_box_pack_start(GTK_BOX(botbox), close, TRUE, FALSE, 5);
+	if (display_options & OPT_DISP_COOL_LOOK)
+		gtk_button_set_relief(GTK_BUTTON(close), GTK_RELIEF_NONE);
 
-	if (display_options & OPT_DISP_COOL_LOOK)
-	{
-		gtk_button_set_relief(GTK_BUTTON(add), GTK_RELIEF_NONE);
-		gtk_button_set_relief(GTK_BUTTON(config), GTK_RELIEF_NONE);
-		gtk_button_set_relief(GTK_BUTTON(remove), GTK_RELIEF_NONE);		
-		gtk_button_set_relief(GTK_BUTTON(close), GTK_RELIEF_NONE);
-	}
-					
 	gtk_box_pack_start(GTK_BOX(page), topbox, TRUE, TRUE, 0);
 	gtk_box_pack_start(GTK_BOX(page), botbox, FALSE, FALSE, 0);