Message-ID: <438E4DE5.8010000 at compiler.kaist.ac.kr> Date: Thu, 01 Dec 2005 10:12:05 +0900 From: SooHyoung Oh MIME-Version: 1.0 To: Jacques Garrigue CC: lablgtk at math.nagoya-u.ac.jp Subject: Re: why style#bg_pixmap is not accessible? References: <438BA7DD.8030409 at compiler.kaist.ac.kr> <20051129.112811.88699901.garrigue at math.nagoya-u.ac.jp> In-Reply-To: <20051129.112811.88699901.garrigue at math.nagoya-u.ac.jp> Content-Type: multipart/alternative; boundary="------------060406060205020704090806" This is a multi-part message in MIME format. --------------060406060205020704090806 Content-Type: text/plain; charset=EUC-KR Content-Transfer-Encoding: 7bit Thank you for your reply. While converting a C Gtk program to lablgtk, I found bg_pixmap was used in C and it does not exist in lablgtk. I'm not good at Gtk so I don't know how to apply what you said in this program. Anyway, I'd like to implement bg_pixmap in lablgtk. (Question) I thought for bg_pixmap I shoud follow some function like GtkData.Style.set_bg and it has the follwoing implementation in lablgtk-2.4.0: external set_bg : style -> state_type -> Gdk.color -> unit = "ml_gtk_style_set_bg" But I can't find "ml_gtk_style_set_bg" c stub function. Where can I follow to style's bg or bg_pixmap? Could you give me more hint? Jacques Garrigue wrote: >From: SooHyoung Oh > > > >>It seems that style#bg_pixmap is not accessible. >> >>Any reason? >> >> > >No real reason. It would not be difficult to add it :-) >Note however that one would have to handle the special value >GDK_PARENT_RELATIVE. >More generally, the direct setting of style is more or less >deprecated: you are supposed to use rc files for that. > >If you just want to use the current value of the pixmap, >GtkData.Style.set_window_background is available. > >Jacques > > > --------------060406060205020704090806 Content-Type: text/html; charset=EUC-KR Content-Transfer-Encoding: 7bit Thank you for your reply.


While converting a C Gtk program to lablgtk,
I found bg_pixmap was used in C and it does not exist in lablgtk.

I'm not good at Gtk so I don't know how to apply what you said in this program.
Anyway, I'd like to implement bg_pixmap in lablgtk.

(Question)
I thought for bg_pixmap I shoud follow some function like GtkData.Style.set_bg
and it has the follwoing implementation in lablgtk-2.4.0:

 external set_bg : style -> state_type -> Gdk.color -> unit
      = "ml_gtk_style_set_bg"

But I can't find "ml_gtk_style_set_bg" c stub function.
Where can I follow to style's bg or bg_pixmap? Could you give me more hint?


Jacques Garrigue wrote:
From: SooHyoung Oh <shoh@compiler.kaist.ac.kr>

  
It seems that style#bg_pixmap is not accessible.

Any reason?
    

No real reason. It would not be difficult to add it :-)
Note however that one would have to handle the special value
GDK_PARENT_RELATIVE.
More generally, the direct setting of style is more or less
deprecated: you are supposed to use rc files for that.

If you just want to use the current value of the pixmap,
GtkData.Style.set_window_background is available.

Jacques

  

--------------060406060205020704090806--