Very simple question
- From: "amitjain" <amitjain webdunia com>
- To: <gtk-list gnome org>
- Subject: Very simple question
- Date: Fri, 25 Oct 2002 11:15:03 +0530
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" <amitjain webdunia com>
To: "amitjain" <amitjain webdunia com>; "Olexiy Avramchenko"
<ath beast stu cn ua>
Cc: <gtk-list gnome org>
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" <amitjain webdunia com>
> To: "Olexiy Avramchenko" <ath beast stu cn ua>
> Cc: <gtk-list gnome org>
> 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
> > gtk-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtk-list
> >
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]