Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=gfpm.git;a=commitdiff;h=a422b52c95e4e22a6cefb0dd619b548dba72ad7c

commit a422b52c95e4e22a6cefb0dd619b548dba72ad7c
Author: Priyank <priy...@frugalware.org>
Date:   Sat Sep 5 13:15:12 2009 +0530

Set appropriate label of the Details button in progress bar
* As suggested by phayz, the "Details" button should toggle to "Summary"
when clicked and vice versa when clicked again.
* Closes #3892

diff --git a/src/gfpm-progress.c b/src/gfpm-progress.c
index 02508ed..3273053 100644
--- a/src/gfpm-progress.c
+++ b/src/gfpm-progress.c
@@ -148,6 +148,7 @@ cb_gfpm_details_button_toggled (GtkWidget *button, gpointer 
data)
gtk_window_resize (GTK_WINDOW(progresswindow), width, height);
gtk_window_get_size (GTK_WINDOW(progresswindow), &width, &height);
gtk_window_set_resizable (GTK_WINDOW(progresswindow), TRUE);
+               gtk_button_set_label (button, _("Summary"));
}
else
{
@@ -157,6 +158,7 @@ cb_gfpm_details_button_toggled (GtkWidget *button, gpointer 
data)
gtk_window_get_size (GTK_WINDOW(progresswindow), &width, &height);
gtk_window_resize (GTK_WINDOW(progresswindow), 350, 1);
gtk_window_set_resizable (GTK_WINDOW(progresswindow), FALSE);
+               gtk_button_set_label (button, _("Details"));
}
return;
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to