Update of /cvsroot/gaim/gaim/src
In directory usw-pr-cvs1:/tmp/cvs-serv20937/src
Modified Files:
multi.c
Log Message:
A patch by Etan. A patch by Ben.
Index: multi.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/multi.c,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -d -r1.118 -r1.119
--- multi.c 2 Aug 2002 04:52:48 -0000 1.118
+++ multi.c 5 Aug 2002 07:44:11 -0000 1.119
@@ -1075,6 +1075,7 @@
struct signon_meter {
struct gaim_connection *gc;
+ GtkWidget *label;
GtkWidget *button;
GtkWidget *progress;
GtkWidget *status;
@@ -1111,6 +1112,12 @@
gtk_progress_bar_update(GTK_PROGRESS_BAR(meter->progress), 1);
gtk_statusbar_pop(GTK_STATUSBAR(meter->status), 1);
gtk_statusbar_push(GTK_STATUSBAR(meter->status), 1, "Done.");
+
+ gtk_widget_hide(meter->label);
+ gtk_widget_hide(meter->button);
+ gtk_widget_hide(meter->progress);
+ gtk_widget_hide(meter->status);
+
meter_win->active_count--;
if (meter_win->active_count == 0) {
gtk_widget_destroy(meter_win->window);
@@ -1234,7 +1241,6 @@
static struct signon_meter *register_meter(struct gaim_connection *gc, GtkWidget *widget, GtkTable *table, gint *rows)
{
GtkWidget *graphic;
- GtkWidget *label;
GtkWidget *nest_vbox;
GString *name_to_print;
struct signon_meter *meter;
@@ -1251,8 +1257,8 @@
nest_vbox = gtk_vbox_new (FALSE, 0);
name_to_print = g_string_prepend(name_to_print, "Signon: ");
- label = gtk_label_new (name_to_print->str);
- gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
+ meter->label = gtk_label_new (name_to_print->str);
+ gtk_misc_set_alignment (GTK_MISC (meter->label), 0, 0.5);
meter->status = gtk_statusbar_new();
gtk_widget_set_usize(meter->status, 250, 0);
@@ -1264,7 +1270,7 @@
gtk_table_attach (GTK_TABLE (table), graphic, 0, 1, *rows, *rows+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0);
gtk_table_attach (GTK_TABLE (table), nest_vbox, 1, 2, *rows, *rows+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0);
- gtk_box_pack_start (GTK_BOX (nest_vbox), GTK_WIDGET (label), FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (nest_vbox), GTK_WIDGET (meter->label), FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (nest_vbox), GTK_WIDGET (meter->status), FALSE, FALSE, 0);
gtk_table_attach (GTK_TABLE (table), meter->progress, 2, 3, *rows, *rows+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0);
gtk_table_attach (GTK_TABLE (table), meter->button, 3, 4, *rows, *rows+1, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0);
|