Hi All !!! i have a window in that i have two labels in a hbox. i wnat that these labels should be resize whenever window resize i.e. i dont want to fix the size of labels. it should change dynamicly whenever window resizes Please let me know i am there are be too many persons which knows this thing exceopt me :) Thanks in advance Amit Jain ----- Original Message ----- From: "amitjain" <[EMAIL PROTECTED]> To: "amitjain" <[EMAIL PROTECTED]>; "Olexiy Avramchenko" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, October 23, 2002 12:00 PM Subject: Re: Change Font of GtkClist title
> Thanks to all for your cooperation. > I got the solution for this question, i guess it is little bit tricky. > So i am writing the code that is needed for chaging title of GtkClist. > Since GtkClist contains widget as a title so you have to change in style > of GtkWidget that you get from function gtk_clist_get_column_widget() > so whole code is here. > GtkWidget *title,clist; > > title = gtk_clist_get_column_widget(GTK_CLIST(clist),0); > > style = gtk_style_copy( gtk_widget_get_style( (GTK_BIN(title)->child) ) ); > style->font = font_load; > gtk_widget_set_style( (GTK_BIN(title)->child), style ) ; > > gtk_clist_set_column_widget(GTK_CLIST(clist),0,title); > > Thanks > Amit Jain > ----- Original Message ----- > From: "amitjain" <[EMAIL PROTECTED]> > To: "Olexiy Avramchenko" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, October 23, 2002 11:38 AM > Subject: Change Font of GtkClist title > > > > Hi !!! > > I am using Gtk1.2. I wnat to set font for GtkClist title. > > I am doint it in this way. > > > > style = gtk_widget_get_style( clist ) ; > > style->font = font_load; > > gtk_widget_set_style( clist, style ) ; > > > > But it is not reflecting chang on GtkClist title. > > Please help me. > > > > Thanks in Advance > > Amit Jain > > > > > > _______________________________________________ > > gtk-list mailing list > > [EMAIL PROTECTED] > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > > _______________________________________________ > gtk-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list > _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list