pointer grab

2011-10-09 Thread control H
Dear list, my app has a button, when it is pressed it waits till the pointer clicks somewhere in a drawing area. I have implemented this by calling gdk_device_grab() in the button-press callback. As such it works OK, but a small detail is that after the drawing area has been clicked, the button

Re: Correct way to package win32 gtk programs

2008-06-02 Thread control H
No doubt you will get other replies telling you to do it in a completely different way... And no doubt some may think the above is ridiculously complicated. But remember, constructing an installer for [...] --tml Hi Tor, I was just thinking a bit about this topic myself. Your method

Re: FW: compiling gtk-engines under mingw

2007-11-11 Thread control H
Has anyone been able to successfully compile and create libmist.dll, libclearlooks.dll under windows? Yes I have done that a year ago or so, I compiled and used clearlooks under Windows using mingw. Libtool generates warnings saying that the shared libraries for gtk, pango, etc.. are not

Re: FW: compiling gtk-engines under mingw

2007-11-11 Thread control H
Thank you for suggesting that. I finally got it to compile after realizing that I was missing the 'dlltool' utility found under the 'binutils' package of mingw. This was key to having libtool create the DLLs. Otherwise it simply was creating archived library packages. That's funny, when

Re: Building and packaging for Windows - theme?

2007-11-05 Thread control H
You copied some mingw dlls? That doesn't sound right. mingwm10.dll is usually required for thread support. Are you sure about that? As far as I understood mingw dll's are only used during compile time, the result should be completely independant on mingw or other unixish help dll's. I've

Re: Building and packaging for Windows - theme?

2007-11-05 Thread control H
$ ldd ./foo.exe ntdll.dll = ntdll.dll (0x7c90) kernel32.dll = C:\WINDOWS\system32\kernel32.dll (0x7c80) libglib-2.0-0.dll = c:\mingw\bin\libglib-2.0-0.dll (0x1000) iconv.dll = c:\mingw\bin\iconv.dll (0x54) MSVCRT.dll =

Re: Menu with stuff in multiple columns?

2007-11-05 Thread control H
On 11/5/07, Reed Hedges [EMAIL PROTECTED] wrote: I have a large list of small names I want to display in a popup menu. Is there any way to tell GTK to allow more than one column, rather than having the popup menu fill the screen from top to bottom? Yes there is. For example, I've made

Re: cairo canvas

2007-09-24 Thread control H
Yes there are quite some canvases based on gtk/cairo out there, some more mature than the other ones, for a table of comparison look at [1]. [1] http://live.gnome.org/ProjectRidley/CanvasOverview?highlight=%28canvas%29#Features I would suggest you to have a look at goocanvas, it comes

cairo canvas

2007-09-23 Thread control H
hello, My app can draw lines, circles etc. on a gtk drawing area (cairo based). However, later on I want to be able to pick up the line, circle etc. and move them around the canvas or resize them. So in effect I want to be able to put graphical objects on the drawing area, and later be able to

stock icons RTL

2007-08-23 Thread control H
When I use gtk stock icons but change the orientation to RTL, the size changes a little bit (at least for GTK_STOCK_MEDIA_PLAY). Is this normal behaviour or a bug? Regards, CH ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: cairo pixmap

2007-05-23 Thread control H
Ah, I just found out the solution is trivial. GdkPixmap *pixmap; /* Create a new backing pixmap of the appropriate size */ static gint configure_event (GtkWidget *widget, GdkEventConfigure *event) { cairo_t *cr; if (pixmap) gdk_pixmap_unref(pixmap); pixmap =

Re: cairo pixmap

2007-05-19 Thread control H
The signal handler for the expose event is passed some parameters specifying which part of the screen has become invalidated. If you use these in a Cairo drawing mask, then redraw your canvas, it should be quite fast, as Cairo will ignore all operations to areas outside the mask. But this

label line wrap en resize

2007-01-29 Thread control H
Hi, does anyone know why when resizing the window, a label doesn't get adjusted/updated? I mean, when you have a label and use gtk_label_set_line_wrap(GTK_LABEL(label),TRUE) I would expect that a line of text gets rewrapped to fit the new situation. When I replace the label with say a button, I

Re: Switching theme

2006-12-20 Thread control H
hi, another example of runtime changing the theme can be found in The Widget Factory, see http://www.stellingwerff.com/?page_id=10 The source is straight forward. On 12/19/06, Madhusudan E [EMAIL PROTECTED] wrote: Hi... Probably u can even use existing applications on net to change themes

Re: A question about deprecated widget

2006-12-20 Thread control H
Hi, A year ago I posted my comments about the GtkComboBox to this list, this link shows the thread: http://marc.theaimsgroup.com/?t=11324387691r=1w=2 Still, the GtkComboBox is the biggest problem in my application. I'm sorry to say, but the combo control is both ugly and clumsy. But as you

Re: textview scrolling fails

2006-12-14 Thread control H
Thanks a lot Michael, that turned out to be the problem! Man did I spent much time on this problem. Wonder why I used the _add_with_viewport() call anyway. Anyway, thanks a lot. ^H On 12/14/06, Michael 'Mickey' Lauer [EMAIL PROTECTED] wrote: control H wrote: This search does find what I'm

Re: gtkentry grab-focus

2006-12-04 Thread control H
For those interested, here's a way to get the desired result. The source of gtkentry.c shows that if the entry receives a click, it resets the selection to the current position of the cursor. Hence the following button-press-event callback works: static gboolean

gtkentry grab-focus

2006-11-29 Thread control H
Say you have some widgets, one of them being a gtkentry. When you tab through the widgets towards the entry, its text will be selected when the entry gets focus. I would like that behaviour also when I just click the text in the entry. I connect to the grab-focus signal where I select all

changing pango attributes

2006-04-14 Thread control H
Hi, I've made a gtklabel with an underline attribute: pango_attr_underline_new(PANGO_UNDERLINE_ERROR); The label shows up fine with this attribtute. However, later on I want to dynamically change this attribute to PANGO_UNDERLINE_NONE. The code basically looks like this:

tab stops in gtkcellrenderertext

2006-03-14 Thread control H
Hi, I try to change the default tab stops setting in a gtkcellrenderertext. However, I can't find a possibility to do this. There isn't for example a pango property that does the job. And I can't find another link to the underlying pango structures. Any ideas on this? Thanks in advance.

pack cells vertically

2006-01-10 Thread control H
Hi all, I've made some treeview and I want to pack some cellrenderers vertically into GtkCellLayout. Thus, I'm looking for some anologue of gtk_cell_layout_pack_end and friends, but in vertical direction. Is that possible? Or is it possible to merge two adjecent rows into one? I've also been

Re: combo rant

2005-11-25 Thread control H
[snip] To be fair, I've worked with combo controls from at least 4 different widget sets and they all were horrible. Win32, GTK, Web, Borland, Java, they all suck. I think as a control, the combo control is just a bad concept. I'm not that negative about a combo control. After all, a good

Re: combo rant

2005-11-25 Thread control H
Well, I must admit that I haven't used Windows more than occasionaly for the last three or four years, but the last time I checked, Windows combo box was much _worse_ than GTK+'s, in my opinion. You would often get a five-line combo where you'd have to scroll like hell to skip all those 200

combo rant

2005-11-23 Thread control H
[I already posted this to the gtk-list, I'm not sure which list I should use] I'll start with apologies for upcoming rant. In general I like Gtk: I'm programming with it for a couple of years now and it's easy to learn, reasonably fast, has many bindings, runs on windows, and is highly themable.