Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 1b396a70c4b5baac51202938d42592e0 > files > 1

gnome-launch-box-0.4-18.fc13.src.rpm

Index: src/lb-main.c
===================================================================
--- src/lb-main.c	(revision 627)
+++ src/lb-main.c	(working copy)
@@ -36,14 +36,11 @@
 static LbModuleManager *manager = NULL;
 
 static gboolean no_window = FALSE;
-static gboolean transparent = FALSE;
 
 static GOptionEntry cmd_args[] = {
 
 	{ "no-default-window", 'n', 0, G_OPTION_ARG_NONE,
 	  &no_window, "Do not show the initial window", NULL},
-	{ "transparent", 't', 0, G_OPTION_ARG_NONE,
-	  &transparent, "Be fancy", NULL}
 };
 
 static void
@@ -52,9 +49,13 @@
 	static GtkWidget *window = NULL;
 
 	if (!manager) {
+		gboolean composited;
+
+		composited = gdk_screen_is_composited (gdk_screen_get_default ());
+
 		manager = g_object_new (LB_TYPE_MODULE_MANAGER,	NULL);
-		
-		window = lb_window_new (manager, transparent);
+
+		window = lb_window_new (manager, composited);
 		gtk_window_set_default_size (GTK_WINDOW (window), 300, -1);
 	}