Did you mean that you want to keep the size of the Label while hiding it? I have an idea, if you would like to give it a try:
void hide_label(GtkLabel * label) { GtkRequisition req; gtk_widget_size_request(label, &req); g_object_set_data_full("label-backup", g_strdup(gtk_label_get_label()), g_free); gtk_label_set_label(" "); gtk_widget_set_size_request(label, req.width, req.height); gtk_widget_queue_resize(label); } void show_label(GtkLabel * label) { gtk_widget_set_size_request(label, -1, -1); gtk_label_set_label(g_object_get_data("label-backup")); gtk_widget_queue_resize(label); } - Yu On Sun, 2008-12-21 at 01:02 -0500, Brent Baccala wrote: > Hi - > > I've got an app where I want my insensitive labels to be invisible, > and I was figuring on doing this by setting their INSENSITIVE color to > be black (same as the background) in an rc file. In particular, I > really don't want to do this in the code, as it's a style thing. > > I've tried the shotgun approach to no avail: > > style "violet_help_label" { fg[NORMAL] = "Violet" fg[INSENSITIVE] = > "Black" fg[PRELIGHT] = "Black" fg[ACTIVE] = "Black" fg[SELECTED] = > "Black" bg[NORMAL] = "Black" bg[INSENSITIVE] = "Black" bg[PRELIGHT] = > "Black" bg[ACTIVE] = "Black" bg[SELECTED] = "Black" text[NORMAL] = > "Black" text[INSENSITIVE] = "Black" text[PRELIGHT] = "Black" > text[ACTIVE] = "Black" text[SELECTED] = "Black" base[NORMAL] = "Black" > base[INSENSITIVE] = "Black" base[PRELIGHT] = "Black" base[ACTIVE] = > "Black" base[SELECTED] = "Black" } > > widget "*.*_help_label" style "violet_help_label" > > Looks like no matter what I do, I've got a 50% gray stipple and > there's no way to change it from an rc file. I'm running GTK+ 2.8.20, > but I've looked at the 2.14.6 source code and it doesn't appear to > help. > > Any suggestions other than coding it all into C? > > Thanks. > > > > > -bwb > > Brent Baccala > cos...@freesoft.org > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list