Hello community, here is the log from the commit of package libgnomesu checked in at Sun May 7 16:22:17 CEST 2006. -------- --- GNOME/libgnomesu/libgnomesu.changes 2006-03-31 21:37:17.000000000 +0200 +++ STABLE/libgnomesu/libgnomesu.changes 2006-05-04 23:38:30.000000000 +0200 @@ -1,0 +2,12 @@ +Thu May 4 23:36:24 CEST 2006 - danw@suse.de + +- stick the command label in a scrolledwindow in case it's really + really long. #161044 + +------------------------------------------------------------------- +Thu May 4 20:55:48 CEST 2006 - hpj@suse.de + +- Add patch to ensure that XAUTHORITY is always set in the child + environment. Fixes Novell bug #172494. + +------------------------------------------------------------------- New: ---- libgnomesu-1.0.0-ensure-xauthority-env.patch libgnomesu-scrollbar.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libgnomesu.spec ++++++ --- /var/tmp/diff_new_pack.vgTAQs/_old 2006-05-07 16:22:09.000000000 +0200 +++ /var/tmp/diff_new_pack.vgTAQs/_new 2006-05-07 16:22:09.000000000 +0200 @@ -23,7 +23,7 @@ Provides: xsu Obsoletes: xsu Version: 1.0.0 -Release: 21 +Release: 30 Summary: GNOME su Library Source: libgnomesu-%{version}.tar.bz2 Source1: gnomesu-pam.pamd @@ -31,6 +31,8 @@ Patch1: libgnomesu-1.0.0-xauth-nolookup.patch Patch2: libgnomesu-1.0.0-spin-mainloop.patch Patch3: libgnomesu-no-selectable-error.patch +Patch4: libgnomesu-1.0.0-ensure-xauthority-env.patch +Patch5: libgnomesu-scrollbar.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -65,6 +67,8 @@ %patch1 -p1 %patch2 -p1 %patch3 -p0 +%patch4 -p1 +%patch5 cp -a %{S:1} pam-backend/gnomesu-pam %build @@ -157,6 +161,12 @@ %{prefix}/%_lib/libgnomesu.*a %changelog -n libgnomesu +* Thu May 04 2006 - danw@suse.de +- stick the command label in a scrolledwindow in case it's really + really long. #161044 +* Thu May 04 2006 - hpj@suse.de +- Add patch to ensure that XAUTHORITY is always set in the child + environment. Fixes Novell bug #172494. * Fri Mar 31 2006 - danw@suse.de - Don't mark the error text as "selectable", since that will make it focusable as well and mess up the tab order. #162600 ++++++ libgnomesu-1.0.0-ensure-xauthority-env.patch ++++++ diff -Nurp libgnomesu-1.0.0-pre/pam-backend/pam.c libgnomesu-1.0.0-post/pam-backend/pam.c --- libgnomesu-1.0.0-pre/pam-backend/pam.c 2005-01-28 09:12:39.000000000 -0600 +++ libgnomesu-1.0.0-post/pam-backend/pam.c 2006-05-04 10:00:47.000000000 -0500 @@ -277,6 +277,9 @@ main (int argc, char *argv[]) pam_open_session (pamh, 0); pid = fork (); + + xputenv (concat ("XAUTHORITY=", pw->pw_dir, "/.Xauthority")); + switch (pid) { case -1: diff -Nurp libgnomesu-1.0.0-pre/su-backend/common.c libgnomesu-1.0.0-post/su-backend/common.c --- libgnomesu-1.0.0-pre/su-backend/common.c 2006-05-04 09:27:19.000000000 -0500 +++ libgnomesu-1.0.0-post/su-backend/common.c 2006-05-04 10:01:00.000000000 -0500 @@ -193,6 +193,8 @@ change_identity (const struct passwd *pw if (setuid (pw->pw_uid)) perror ("cannot set user id"); + xputenv (concat ("XAUTHORITY=", pw->pw_dir, "/.Xauthority")); + /* Create a new .Xauthorization file */ if (!xauth_data) return; p = popen ("xauth -q nmerge - 2>/dev/null", "w"); ++++++ libgnomesu-scrollbar.patch ++++++ --- src/gnomesu-auth-dialog.c +++ src/gnomesu-auth-dialog.c @@ -104,7 +104,7 @@ GtkWidget *vbox; GtkWidget *icon, *label; GtkWidget *table, *input; - GtkWidget *button; + GtkWidget *button, *scroll, *viewport; adialog->_priv = g_new0 (GnomesuAuthDialogPrivate, 1); @@ -165,15 +165,22 @@ gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, - GTK_FILL, GTK_FILL, + GTK_FILL, GTK_FILL | GTK_EXPAND, 0, 0); adialog->_priv->command_label = label = gtk_label_new (""); gtk_label_set_selectable (GTK_LABEL (label), TRUE); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); - gtk_table_attach (GTK_TABLE (table), label, + + scroll = gtk_scrolled_window_new (NULL, NULL); + gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll), GTK_POLICY_AUTOMATIC, GTK_POLICY_NEVER); + viewport = gtk_viewport_new (NULL, NULL); + gtk_viewport_set_shadow_type (GTK_VIEWPORT (viewport), GTK_SHADOW_NONE); + gtk_container_add (GTK_CONTAINER (scroll), viewport); + gtk_container_add (GTK_CONTAINER (viewport), label); + gtk_table_attach (GTK_TABLE (table), scroll, 1, 2, 0, 1, - GTK_FILL | GTK_EXPAND, GTK_FILL, + GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 0, 0); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun...
participants (1)
-
root@suse.de