Re: Change Font of GtkClist title
- From: "amitjain" <amitjain webdunia com>
- To: "amitjain" <amitjain webdunia com>, "Olexiy Avramchenko" <ath beast stu cn ua>
- Cc: <gtk-list gnome org>
- Subject: Re: Change Font of GtkClist title
- Date: Wed, 23 Oct 2002 12:00:03 +0530
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
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]