forked from pool/lxsession
This commit is contained in:
parent
4ca2a68b8c
commit
ea82db63e4
@ -1,65 +0,0 @@
|
||||
diff -uNr old-lxsession-0.4.2//lxsession-logout/lxsession-logout.c lxsession-0.4.2/lxsession-logout/lxsession-logout.c
|
||||
--- old-lxsession-0.4.2//lxsession-logout/lxsession-logout.c 2010-03-10 07:41:10.972412403 +0100
|
||||
+++ lxsession-0.4.2/lxsession-logout/lxsession-logout.c 2010-03-10 07:45:45.528412788 +0100
|
||||
@@ -405,6 +405,8 @@
|
||||
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);
|
||||
|
||||
@@ -414,6 +416,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);
|
||||
}
|
||||
@@ -424,6 +428,8 @@
|
||||
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);
|
||||
+ /* 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);
|
||||
}
|
||||
@@ -434,6 +440,8 @@
|
||||
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);
|
||||
+ /* 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);
|
||||
}
|
||||
@@ -444,6 +452,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);
|
||||
}
|
||||
@@ -454,12 +464,16 @@
|
||||
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);
|
||||
}
|
||||
|
||||
/* 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);
|
||||
|
Loading…
Reference in New Issue
Block a user