diff src/aim.c @ 905:2876c40108cd

[gaim-migrate @ 915] Patch for wmclass to add better support for Sawfish's window history/etc. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Thu, 14 Sep 2000 17:50:56 +0000
parents 3a5301117bb1
children f3c23b3c1ed7
line wrap: on
line diff
--- a/src/aim.c	Thu Sep 14 17:40:48 2000 +0000
+++ b/src/aim.c	Thu Sep 14 17:50:56 2000 +0000
@@ -325,6 +325,11 @@
         }
        
 	mainwindow = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+        /* Set the WM name and class */
+        gtk_window_set_wmclass(GTK_WINDOW(mainwindow), "login",
+                               "Gaim");
+        /* Disallow resizing */
+        gtk_window_set_policy(GTK_WINDOW(mainwindow), FALSE, FALSE, TRUE);
 	gtk_widget_realize(mainwindow);
 	signon   = gtk_button_new_with_label(_("Signon"));
 	cancel   = gtk_button_new_with_label(_("Cancel"));
@@ -458,8 +463,7 @@
 	gtk_container_add(GTK_CONTAINER(mainwindow),table );
 	
 	gtk_widget_show(table);
-	gtk_window_set_title(GTK_WINDOW(mainwindow),_("Gaim - Login"));
-
+        gtk_window_set_title(GTK_WINDOW(mainwindow),_("Gaim - Login"));
 
         gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(remember), (general_options & OPT_GEN_REMEMBER_PASS));