SHA256
1
0
forked from pool/lxsession
andrea florio 2010-03-18 21:43:04 +00:00 committed by Git OBS Bridge
parent ea82db63e4
commit e1f4efc859
4 changed files with 84 additions and 5 deletions

View File

@ -0,0 +1,70 @@
diff -uNr old-lxsession-0.4.3/lxsession-logout/lxsession-logout.c lxsession-0.4.3//lxsession-logout/lxsession-logout.c
--- old-lxsession-0.4.3/lxsession-logout/lxsession-logout.c 2010-03-18 17:21:34.000000000 +0100
+++ lxsession-0.4.3//lxsession-logout/lxsession-logout.c 2010-03-18 22:41:18.875553519 +0100
@@ -395,6 +395,8 @@
GtkWidget * shutdown_button = gtk_button_new_with_mnemonic(_("Sh_utdown"));
GtkWidget * image = gtk_image_new_from_icon_name("system-shutdown", GTK_ICON_SIZE_BUTTON);
gtk_button_set_image(GTK_BUTTON(shutdown_button), image);
+ /* align it to left 0.0 as X and 0.0 as Y */
+ gtk_button_set_alignment(GTK_BUTTON(shutdown_button), 0.0 ,0.0);
g_signal_connect(G_OBJECT(shutdown_button), "clicked", G_CALLBACK(shutdown_clicked), &handler_context);
gtk_box_pack_start(GTK_BOX(controls), shutdown_button, FALSE, FALSE, 4);
}
@@ -404,8 +406,10 @@
{
GtkWidget * reboot_button = gtk_button_new_with_mnemonic(_("_Reboot"));
GtkWidget * image = gtk_image_new_from_icon_name("gnome-session-reboot", GTK_ICON_SIZE_BUTTON);
- gtk_button_set_image(GTK_BUTTON(reboot_button), image);
- g_signal_connect(G_OBJECT(reboot_button), "clicked", G_CALLBACK(reboot_clicked), &handler_context);
+ gtk_button_set_image(GTK_BUTTON(reboot_button), image);
+ /* align it to left 0.0 as X and 0.0 as Y */
+ gtk_button_set_alignment(GTK_BUTTON(reboot_button), 0.0 ,0.0);
+ g_signal_connect(G_OBJECT(reboot_button), "clicked", G_CALLBACK(reboot_clicked), &handler_context);
gtk_box_pack_start(GTK_BOX(controls), reboot_button, FALSE, FALSE, 4);
}
@@ -415,7 +419,9 @@
GtkWidget * suspend_button = gtk_button_new_with_mnemonic(_("_Suspend"));
GtkWidget * image = gtk_image_new_from_icon_name("gnome-session-suspend", GTK_ICON_SIZE_BUTTON);
gtk_button_set_image(GTK_BUTTON(suspend_button), image);
- g_signal_connect(G_OBJECT(suspend_button), "clicked", G_CALLBACK(suspend_clicked), &handler_context);
+ /* align it to left 0.0 as X and 0.0 as Y */
+ gtk_button_set_alignment(GTK_BUTTON(suspend_button), 0.0 ,0.0);
+ g_signal_connect(G_OBJECT(suspend_button), "clicked", G_CALLBACK(suspend_clicked), &handler_context);
gtk_box_pack_start(GTK_BOX(controls), suspend_button, FALSE, FALSE, 4);
}
@@ -425,6 +431,8 @@
GtkWidget * hibernate_button = gtk_button_new_with_mnemonic(_("_Hibernate"));
GtkWidget * image = gtk_image_new_from_icon_name("gnome-session-hibernate", GTK_ICON_SIZE_BUTTON);
gtk_button_set_image(GTK_BUTTON(hibernate_button), image);
+ /* align it to left 0.0 as X and 0.0 as Y */
+ gtk_button_set_alignment(GTK_BUTTON(hibernate_button), 0.0 ,0.0);
g_signal_connect(G_OBJECT(hibernate_button), "clicked", G_CALLBACK(hibernate_clicked), &handler_context);
gtk_box_pack_start(GTK_BOX(controls), hibernate_button, FALSE, FALSE, 4);
}
@@ -435,6 +443,8 @@
GtkWidget * switch_user_button = gtk_button_new_with_mnemonic(_("S_witch User"));
GtkWidget * image = gtk_image_new_from_icon_name("gnome-session-switch", GTK_ICON_SIZE_BUTTON);
gtk_button_set_image(GTK_BUTTON(switch_user_button), image);
+ /* align it to left 0.0 as X and 0.0 as Y */
+ gtk_button_set_alignment(GTK_BUTTON(switch_user_button), 0.0 ,0.0);
g_signal_connect(G_OBJECT(switch_user_button), "clicked", G_CALLBACK(switch_user_clicked), &handler_context);
gtk_box_pack_start(GTK_BOX(controls), switch_user_button, FALSE, FALSE, 4);
}
@@ -443,11 +453,15 @@
GtkWidget * logout_button = gtk_button_new_with_mnemonic(_("_Logout"));
GtkWidget * image = gtk_image_new_from_icon_name("system-log-out", GTK_ICON_SIZE_BUTTON);
gtk_button_set_image(GTK_BUTTON(logout_button), image);
+ /* align it to left 0.0 as X and 0.0 as Y */
+ gtk_button_set_alignment(GTK_BUTTON(logout_button), 0.0 ,0.0);
g_signal_connect(G_OBJECT(logout_button), "clicked", G_CALLBACK(logout_clicked), &handler_context);
gtk_box_pack_start(GTK_BOX(controls), logout_button, FALSE, FALSE, 4);
/* Create the Cancel button. */
GtkWidget * cancel_button = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
+ /* align it to left 0.0 as X and 0.0 as Y */
+ gtk_button_set_alignment(GTK_BUTTON(cancel_button), 0.0 ,0.0);
g_signal_connect(G_OBJECT(cancel_button), "clicked", G_CALLBACK(cancel_clicked), NULL);
gtk_box_pack_start(GTK_BOX(controls), cancel_button, FALSE, FALSE, 4);

3
lxsession-0.4.3.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0833e9e471b0b76e942611743195a5762342acf98eb780b897216b42290bede4
size 203238

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Mar 18 21:42:38 UTC 2010 - andrea@opensuse.org
- new upstream version 0.4.3
- removed fortify-declaration patch (fixed upstream)
- ported lxsession-0.4.2-fix-buttons-position.patch to fit new code
- bug fix release
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 11 08:02:45 UTC 2010 - andrea@opensuse.org Thu Mar 11 08:02:45 UTC 2010 - andrea@opensuse.org

View File

@ -1,5 +1,5 @@
# #
# spec file for package lxsession (Version 0.4.2) # spec file for package lxsession (Version 0.4.3)
# #
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
@ -19,15 +19,14 @@
Name: lxsession Name: lxsession
Version: 0.4.2 Version: 0.4.3
Release: 2 Release: 2
Summary: LXDE Session Manager, required for running the desktop environment Summary: LXDE Session Manager, required for running the desktop environment
Group: System/GUI/Other Group: System/GUI/Other
License: GPL License: GPL
Url: http://www.lxde.org/ Url: http://www.lxde.org/
Source0: %{name}-%{version}.tar.bz2 Source0: %{name}-%{version}.tar.bz2
Patch0: %name-0.4.2-implicit-fortify-decl.patch Patch0: %name-0.4.3-fix-buttons-position.patch
Patch1: %name-0.4.2-fix-buttons-position.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: dbus-1-glib-devel fdupes gtk2-devel intltool pkg-config BuildRequires: dbus-1-glib-devel fdupes gtk2-devel intltool pkg-config
BuildRequires: docbook-utils docbook-xsl-stylesheets hal-devel libxslt BuildRequires: docbook-utils docbook-xsl-stylesheets hal-devel libxslt
@ -45,7 +44,6 @@ Authors:
%prep %prep
%setup -q -n %name-%version %setup -q -n %name-%version
%patch0 -p1 %patch0 -p1
%patch1 -p1
%build %build
export CFLAGS="$RPM_OPT_FLAGS" export CFLAGS="$RPM_OPT_FLAGS"