Re: GTK+ Draw a Rectangle over other widgets?

2006-08-21 Thread ensonic
On 12:33:05 am 21/08/2006 Wolfman [EMAIL PROTECTED] wrote: @Stefan Can u tell me how to call the expose in simple example? You don call that, gtk+ calls that to ask the widget to redraw. See bt_sequence_view_expose_event() in

Re: Sockets in GTK+?

2006-08-21 Thread Vivien Malerba
On 8/20/06, n3ck [EMAIL PROTECTED] wrote: Hi every1! Im was delphi (win) coder for a while but now i use linux as OS. I really like to code so i choose GTK for build applications on linux. I have been searching for some tutorial, text or articule about how to build cliente/server apps using

Key Press Event!

2006-08-21 Thread Madhusudan E
Hi All, I am defining a new widget and within the class_init I am mapping Widget_class-key_press_event to local key press event handling function. But none of the keypress event is caught by my local function. Pls give out ur suggestions over this. Thanks, Madhusudan E, HTIPL,

GTK+ PopUp Window make it Transparent...

2006-08-21 Thread Wolfman
I use WinXP with GTK+ 2.8.18 This dont work the colormap is always null... GdkScreen *screen = gtk_widget_get_screen(widget); GdkColormap *colormap = gdk_screen_get_rgba_colormap(screen); Is there a other way to make a window transparent? And why this doesnt work under WinXP?I know in *NIX u

Re: GTK+ PopUp Window make it Transparent...

2006-08-21 Thread Tor Lillqvist
Wolfman writes: Is there a other way to make a window transparent? And why this doesnt work under WinXP? Windows with alpha aren't implemented in gdk/win32. Patches welcome. Look for layered windows in MSDN. --tml ___ gtk-app-devel-list mailing

Re: GTK+ PopUp Window make it Transparent...

2006-08-21 Thread Wolfman
Good to know :) 1.Do u know how to get the HWND(is there a way to get the HWND from HGDIOBJ?) Its looks quit easy under win32: // Set WS_EX_LAYERED on this window SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED); // Make this window 70% alpha

Re: GTK+ PopUp Window make it Transparent...

2006-08-21 Thread Tor Lillqvist
Wolfman writes: 1.Do u know how to get the HWND(is there a way to get the HWND from HGDIOBJ?) I don't know about HGDIOBJ, but you can get the HWND for a Gdk window by including gdk/gdkwin32.h and using the function gdk_win32_drawable_get_handle(). Its looks quit easy under win32: //

Re: GTK+ PopUp Window make it Transparent...

2006-08-21 Thread Wolfman
Juhu got Alpha working :) static gboolean expose(GtkWidget *widget, GdkEventExpose *event, gpointer userdata) { cairo_t *cr = gdk_cairo_create(widget-window); HWND hwnd = (HWND)gdk_win32_drawable_get_handle (widget-window); SetWindowLong(hwnd, GWL_EXSTYLE,

Event Box doesnt work on key_press_event

2006-08-21 Thread Madhusudan E
Hi all, I am trying attach key_press_event to event_box, which contains a label. But it is not catching the key_press_event. Can someone suggest how to go abt this. Madhusudan E, HTIPL, Bangalore-08 - 9980527224 www.huawei.com This e-mail and attachments contain

Re: Event Box doesnt work on key_press_event

2006-08-21 Thread Wolfman
You must grab the focus at best on mouse over. Madhusudan E wrote: Hi all, I am trying attach key_press_event to event_box, which contains a label. But it is not catching the key_press_event. Can someone suggest how to go abt this. Madhusudan E, HTIPL,

Resizing window

2006-08-21 Thread Fernando Apesteguía
Hi list! I'm developing a simple application. I have a tabbed pane. Some of these tabs are bigger than others, with more text and more widgets. When I click on one of these tabs, the window growns, what is great, but when I click in a smaller tab, the window doen't return to the minimum required

Re: GTK+ PopUp Window make it Transparent...

2006-08-21 Thread Tor Lillqvist
Wolfman writes: Juhu got Alpha working :) Cool! Have u an ICQ UIN? Nope. I am usually in #gtk+ on irc.gimp.org. --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GTK+ PopUp Window make it Transparent...

2006-08-21 Thread Wolfman
#define _WIN32_WINNT 0x0500 #define WINVER 0x0500 #include gtk/gtk.h #include gdk/gdk.h #include gdk/gdkwin32.h #include cairo.h int main(int argc, char **argv) { gtk_init(argc, argv); GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);

Re: Sockets in GTK+?

2006-08-21 Thread Chris Sparks
I went looking fo rGNet and what is odd is that it says this: It is written in C, object-oriented, and built upon GLib. C isn't object-oriented.. Chris Tristan Van Berkom wrote: Luka Napotnik wrote: GTK+ is a graphical library for creating UI's. For socket programming you have to

Re: Sockets in GTK+?

2006-08-21 Thread Vivien Malerba
On 8/21/06, Chris Sparks [EMAIL PROTECTED] wrote: I went looking fo rGNet and what is odd is that it says this: It is written in C, object-oriented, and built upon GLib. C isn't object-oriented.. The C language does not object, however nothing prevents you from having a Object oriented

Re: Sockets in GTK+?

2006-08-21 Thread Alan M. Evans
On Mon, 2006-08-21 at 06:18, Chris Sparks wrote: I went looking fo rGNet and what is odd is that it says this: It is written in C, object-oriented, and built upon GLib. C isn't object-oriented.. Object-oriented is a philosophy, not an attribute of a language. C++ supports objects

Re: Resizing window

2006-08-21 Thread Samuel Cormier-Iijima
I had the same problem with a FileChooserWidget with an extra GtkExpander widget in it. One solution is to make the window fixed (unresizable). Of course, the downside is that the user can't ­­resize it himself. Let me know if you find another solution! Cheers, Samuel On 8/21/06, Fernando

Italian translation for gtk-properties

2006-08-21 Thread Bruno Luca
Hello, i've fetched the CVS for the first, time. I would like to attach my diff to it.po. Hope it has been a good job... Best regards, -- www.lethalman.net - Thoughts about internet technologies ___ gtk-devel-list mailing list gtk-devel-list@gnome.org

Re: Italian translation for gtk-properties

2006-08-21 Thread Emmanuele Bassi
Hi; On Mon, 2006-08-21 at 12:59 +0200, Bruno Luca wrote: Hello, i've fetched the CVS for the first, time. I would like to attach my diff to it.po. Hope it has been a good job... You should open a bug on GNOME's bugzilla[1] against the it component of the l10n product[2]. You should also mail