From 9cc23101d7dfebaeffbc46b07a2a3f5708418af1 Mon Sep 17 00:00:00 2001 From: Jovan Lanik Date: Sat, 22 Oct 2022 00:51:58 +0200 Subject: [PATCH] fix #1 --- source.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source.c b/source.c index 56a377e..a399fa0 100644 --- a/source.c +++ b/source.c @@ -97,9 +97,9 @@ static void setup_powerbar(struct Window *ctx) { if(suspend_command && suspend_command[0] != '\0') { POWERBAR(ctx)->suspend_button = gtk_button_new_from_icon_name("preferences-desktop-screensaver-symbolic", GTK_ICON_SIZE_BUTTON); gtk_widget_set_name(POWERBAR(ctx)->suspend_button, "suspend-button"); - //gtk_widget_set_tooltip_text(POWERBAR(ctx)->suspend_button, "Reboot"); + //gtk_widget_set_tooltip_text(POWERBAR(ctx)->suspend_button, "Suspend"); gtk_button_set_always_show_image(GTK_BUTTON(POWERBAR(ctx)->suspend_button), TRUE); - if(show_labels) gtk_button_set_label(GTK_BUTTON(POWERBAR(ctx)->suspend_button), "Reboot"); + if(show_labels) gtk_button_set_label(GTK_BUTTON(POWERBAR(ctx)->suspend_button), "Suspend"); g_signal_connect(POWERBAR(ctx)->suspend_button, "clicked", G_CALLBACK(button_clicked), suspend_command); gtk_container_add(GTK_CONTAINER(POWERBAR(ctx)->box), POWERBAR(ctx)->suspend_button); } @@ -117,9 +117,9 @@ static void setup_powerbar(struct Window *ctx) { if(logout_command && logout_command[0] != '\0') { POWERBAR(ctx)->logout_button = gtk_button_new_from_icon_name("system-log-out-symbolic", GTK_ICON_SIZE_BUTTON); gtk_widget_set_name(POWERBAR(ctx)->logout_button, "logout-button"); - //gtk_widget_set_tooltip_text(POWERBAR(ctx)->logout_button, "Switch user"); + //gtk_widget_set_tooltip_text(POWERBAR(ctx)->logout_button, "Log out"); gtk_button_set_always_show_image(GTK_BUTTON(POWERBAR(ctx)->logout_button), TRUE); - if(show_labels) gtk_button_set_label(GTK_BUTTON(POWERBAR(ctx)->logout_button), "Switch user"); + if(show_labels) gtk_button_set_label(GTK_BUTTON(POWERBAR(ctx)->logout_button), "Log out"); g_signal_connect(POWERBAR(ctx)->logout_button, "clicked", G_CALLBACK(button_clicked), logout_command); gtk_container_add(GTK_CONTAINER(POWERBAR(ctx)->box), POWERBAR(ctx)->logout_button); }