gtk+

Libtool think that a "library was moved" but it isn't the case...

Hello all, I am currently recompiling gtk+ and dependencies from source (I have no other choices). All my custom packages are installed in a specific custom point (let's call it /packages) (it can seem odd but this time again, I have no other choices). When I try to recompile pango, it needs freetype. Freetype is already installed in ...

Disable vertical scaling in GTK+

How can I disable vertical scaling in GTK+? My program, which is currently only several controls in a few hbox objects stacked vertically in a vbox, stretches vertically when I increase the size of the window. I don't want this to occur. ...

GTK+ typecast style for function arguments

In GTK+ calls, arguments should (but don't have to) be casted from GtkWidget to the most specific class needed by the function before passing the argument. For example, sometimes I see some_call(GTK_WINDOW(window)); while other times, I see some_call((GtkWindow *) window); What's the difference? ...

GtkEntry text change signal

How can I connect a signal callback for any kind of change in a GtkEntry's buffer, including character added, deleted, text pasted or cut? I've looked in the docs for GtkWidget, GtkEntry and GtkEntryBuffer without finding this. Note: if my question was badly worded, think of the HTML DOM's change event, except that it's fired greedily a...

gtk DrawingArea expand inside Fixed

I currently load a DrawingArea widget inside a Frame - and it always expands to fill the frame. I can then set the configure event on the DrawingArea to allocate a pixmap of the same size as the window, draw on it, then draw the pixmap to the DrawingArea (using draw_drawable). However, now I want to overlay invisible widgets ontop of th...

Giving keyboard focus to a GtkMenu

I'm popping-up a GtkMenu at random coordinates on the screen (outside of my application's main window). I'd like to give keyboard focus to this GtkMenu. Since I'm using Windows, I tried: SetForegroundWindow(GDK_WINDOW_HWND(menu->window)); But that causes the menu to immediately disappear, as does: SetFocus(GDK_WINDOW_HWND(menu->wind...

GTK+ application specific skin possible?

Hi, I've started working with GTK+ and Vala and am having a hard time finding documentation on creating custom buttons (totally new looking buttons). In fact now that I think about it, every GTK+ application has that distinct look that gives away that it's a GTK+ app. Is it difficult to create a totally new look for my application if I ...

GTK+ menu transitions possible?

Hi, I'm trying to use GTK+ 2.0 for my GUI, but I'm not sure how I could implement a menu that slides out when a button is clicked. Making a menu disappear/re-appear instantaneously would not be difficult to do as it requires a simple change to the visibility property. This app is being developed on Windows, but I'm also planning to port...

How to catch GTK focus state in gtkrc ?

GTK+ 2.x has the follow states: NORMAL, PRELIGHT, ACTIVE, INSENSITIVE, SELECTED for use in GTK themes and I can do things like... bg[NORMAL] = "#f6f6f6" .. to change background color when in NORMAL state. Also, I can change the background image of a button (when the mouse is over it) by changing the PRELIGHT state image. But I was n...

Does pygtk support absolute positioning?

I just want to put an Image on a screen given the X and Y. ...

Hooking CTRL pressed in GTK+ application

How can I hook CTRL pressed in "drawingarea_button_press_event_cb" function of GTK+ application? void drawingarea_button_press_event_cb( GtkWidget *widget, GdkEventButton *event ) { ........ } ...