diff src/conversation.c @ 4026:a997156437b6

[gaim-migrate @ 4230] Win prefs page w/ transparency option added committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Sun, 01 Dec 2002 03:08:27 +0000
parents 4faf2a9753cb
children ab831dca298a
line wrap: on
line diff
--- a/src/conversation.c	Sun Dec 01 03:04:09 2002 +0000
+++ b/src/conversation.c	Sun Dec 01 03:08:27 2002 +0000
@@ -49,7 +49,7 @@
 #include "prpl.h"
 
 #ifdef _WIN32
-#include <process.h> /* fog getpid() */
+#include <process.h> /* for getpid() */
 #include <io.h>
 #include "win32dep.h"
 #endif
@@ -2783,6 +2783,17 @@
 			menubar = build_conv_menubar(c);
 			gtk_box_pack_start(GTK_BOX(testidea), menubar, FALSE, TRUE, 0);
 			gtk_box_pack_start(GTK_BOX(testidea), convo_notebook, TRUE, TRUE, 0);
+#ifdef _WIN32
+			/* Windows transparency slider */
+			if ((wgaim_options & OPT_WGAIM_IMTRANS) &&
+			    (wgaim_options & OPT_WGAIM_SHOW_IMTRANS)) {
+				gtk_box_pack_start(GTK_BOX(testidea),
+						   wgaim_wintrans_slider(win),
+						   FALSE, FALSE, 0);
+			} else if(wgaim_options & OPT_WGAIM_IMTRANS) {
+				wgaim_set_wintrans(win, wgaim_get_imalpha());
+			}
+#endif
 			gtk_widget_show(testidea);
 			gtk_widget_show(convo_notebook);
 			convo_menubar = menubar;
@@ -2790,7 +2801,6 @@
 			gtk_container_add(GTK_CONTAINER(win), testidea);
 			gtk_signal_connect(GTK_OBJECT(convo_notebook), "switch-page",
 					   GTK_SIGNAL_FUNC(convo_switch), NULL);
-
 		} else
 			win = c->window = all_convos;
 
@@ -2811,7 +2821,8 @@
 		gtk_box_pack_start(GTK_BOX(tabby), c->close, FALSE, FALSE, 0);
 		gtk_widget_show_all(tabby);
 		gtk_notebook_insert_page(GTK_NOTEBOOK(convo_notebook), cont, tabby,
-				g_list_index(conversations, c));
+					 g_list_index(conversations, c));
+
 		gtk_widget_show(cont);
 	} else {
 		cont = win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
@@ -2917,6 +2928,23 @@
 	gtk_box_pack_start(GTK_BOX(vbox2), bbox, FALSE, FALSE, 0);
 	gtk_widget_show(bbox);
 
+#ifdef _WIN32
+	/* Windows transparency slider */
+	if ((wgaim_options & OPT_WGAIM_IMTRANS) &&
+	    (wgaim_options & OPT_WGAIM_SHOW_IMTRANS) &&
+	    !(im_options & OPT_IM_ONE_WINDOW)) {
+		GtkWidget *wsep = gtk_hseparator_new();
+		gtk_box_pack_start(GTK_BOX(vbox2), wsep, FALSE, FALSE, 0);
+		gtk_widget_show(wsep);
+		gtk_box_pack_start(GTK_BOX(vbox2),
+				   wgaim_wintrans_slider(c->window),
+				   FALSE, FALSE, 0);
+	} else if((wgaim_options & OPT_WGAIM_IMTRANS) &&
+		  !(im_options & OPT_IM_ONE_WINDOW)) {
+		wgaim_set_wintrans(win, wgaim_get_imalpha());
+	}
+#endif
+
 /* I'm leaving this here just incase we want to bring this back. I'd rather not have the close
  * button any more.  If we do, though, it needs to be on the left side.  I might bring it back and put
  * it on that side.  */