Re: How to register a window in GTK ?
- From: Roger Leigh <roger whinlatter uklinux net>
- To: Dipak G Patil <dippatil in ibm com>
- Cc: gtk-list gnome org
- Subject: Re: How to register a window in GTK ?
- Date: Mon, 12 Jul 2004 15:10:32 +0100
On Mon, Jul 12, 2004 at 11:04:05AM +0530, Dipak G Patil wrote:
>
> Could you please tell me how can I register a window class in GTK, as I
> did not find anything for the same, like there is API RegisterClassEx in
> windows?
There's not a direct equivalent AFAICT. I think it's better to derive a
new object from GtkWindow. Here's how:
http://le-hacker.org/papers/gobject/
Then you can do:
MyWindow *window = my_window_new();
GtkWindow *gtkwindow = GTK_WINDOW(window);
> Also, does gtk_widget_show repaints its own window area, as I did not find
> function like windows UdateWindow().
It shows the widget. You don't usually need to care about repainting,
which is taken care of for you.
--
Roger Leigh
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]