[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnubg] changing GTK label from callback
From: |
Holger |
Subject: |
[Bug-gnubg] changing GTK label from callback |
Date: |
Fri, 18 Jul 2003 21:38:36 +0200 |
Hi,
does anybody know how one can update a GTK label from a signal callback?
Just gtk_label_set_text doesn't seem to work.
I've tried to fix "[bug #4288] Incorrect path to MET", showing the MET
filename under settings|options|match. After loading a new table I try to
change the label text from SetMET(). But it doesn't want to. :( I've even
tried:
extern void SetMET( gpointer *p, guint n, GtkWidget *pw ) {
...
if ( p && GTK_WIDGET_VISIBLE( p ) ) {
gtk_label_set_text( GTK_LABEL( p ), miCurrent.szFileName );
/* the following shouldn't be necessary */
gtk_widget_queue_draw( GTK_WIDGET( p ) );
gtk_widget_queue_draw( gtk_widget_get_toplevel( GTK_WIDGET( p ) ) );
gtk_widget_show_all( gtk_widget_get_toplevel( GTK_WIDGET( p ) ) );
}
Regards,
Holger
- [Bug-gnubg] changing GTK label from callback,
Holger <=