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 is
> 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 metho
> 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, w
> 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
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
> $ 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 => C:\WIND
> > 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
> 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 co
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 man
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
http://mail.g
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 = gdk_pixmap_new(widget->wind
> 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 thi
Hi,
I'm planning to make my app use cairo instead of GDK based functions.
I'm using a drawing area, which draws into a pixmap when the
"configure" event is emitted, and copies the relevant part of the
pixmap back on the screen on the "expose" event.
When I'm doing the same with cairo, a black scr
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
Hi,
A year ago I posted my comments about the GtkComboBox to this list,
this link shows the thread:
http://marc.theaimsgroup.com/?t=11324387691&r=1&w=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
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 theme
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:
> > T
Hi,
my call to gtk_text_view_scroll_to_iter fails and I really can't
figure out why. Here's some actual code I use:
if(gtk_text_iter_forward_search(&iter, text, 0, &mstart, &mend, NULL)){
printf("match\n");
gtk_text_buffer_apply_tag_by_name(tb,"found", &mstart, &mend);
last_po
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 event_cb(GtkWidget*w,GdkEvent*event
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 availabl
Hi all,
in a gtktreestore with 1 column I store names (textfields) in three
groups: group A, group B and group C resp. This store is being used as
the model for a gtkcomboboxentry. This widget shows up as expected:
correctly shows the three groups with the "expander icon" in front of
it, and expan
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:
attrlist=gtk_label_get_a
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.
___
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 tryi
> 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 20
[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 go
[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. H
27 matches
Mail list logo