Re: [PATCH] ldm-fix-input-field-location.patch

Ryan Niebur <[email protected]>
Newsgroups gmane.linux.terminal-server.devel
Message-ID <[email protected]>
Hello,

lw is no longer being used, so we don't need to calculate it.  and we
still want the height to be set to 0 (otherwise the label next to the
textbox is higher than the textbox), we just don't want to set the
width.

Updated patch attached.

-- 
_________________________
Ryan Niebur
[email protected]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
new_ldm_patch (text/plain, 1003 B)
=== modified file 'gtkgreet/greeter.c'
--- gtkgreet/greeter.c	2008-08-16 23:13:10 +0000
+++ gtkgreet/greeter.c	2008-09-01 04:57:14 +0000
@@ -372,7 +372,7 @@
     int pw, ph, spheight, w, h;
     const char *hoststring = 0;
 
-    gint lw, lh;
+    gint lh;
 
     GdkCursor *normcursor, *busycursor;
     GtkWidget *window, *syslabel, *logo, *EntryBox, *timelabel;
@@ -441,7 +441,6 @@
     logo = gtk_image_new_from_file(ldm_theme_file("/logo.png"));
 
     pix = gtk_image_get_pixbuf((GtkImage *) logo);
-    lw = gdk_pixbuf_get_width(pix);
     lh = gdk_pixbuf_get_height(pix);
 
     spheight = (height / 4) - (lh / 2);
@@ -505,11 +504,8 @@
     UserPrompt = gtk_label_new("");
     spacer = gtk_label_new("");
 
-    if (lw < 180)
-        lw = 180;
-
     gtk_misc_set_alignment((GtkMisc *) UserPrompt, 1, 0.5);
-    gtk_widget_set_size_request(UserPrompt, (lw / 2), 0);
+    gtk_widget_set_size_request(UserPrompt, -1, 0);
 
     StatusMessages = gtk_label_new("");
     entry = gtk_entry_new();
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAki7epAACgkQMihv+PacasUNLACgz/FsaVc71SbBHgzL/T0gzj0U
uogAnRUnNDjKpm6EJ9Gfi5FOofHxHqE9
=R8Dv
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.