Hi,
I have a drawing area, and a window with 2 gtk_range, and them
variable form 1 to 10, and this values go to posH and posV. I'm doing
this to can draw a rectangular with my specification.. max width: 10,
min: 1, max henght:10, min: 1.
This event is called when drawing area is clicked:
static
Hello Frederico,
What you are doing is basically hit detection. What I wonder is why you are
doing it the hard way. Why don't you use one of the canvas widgets, e.g.
goocanvas? It allows you to tie events to specific geometric objects.
If you want to do it on your own I first of all suggest that
Sorry, forgot to change the subject line last time.
Hi Christian,
Thanks for the reply. The exact problem I am facing is the destruction of
the Socket Plug widgets.
Currently what I am doing is:
- While creating the plugin, I am creating the plug using gtk_plug_new(). I
am adding my plugin
On Thu, 2008-09-25 at 02:02 +0200, Christian Dywan wrote:
* gtk_widget_get_allocation
Removed in 2.14.1
The prototype of this function was not agreed upon among the core
developers. So the decision was deferred to the next Gtk version.
It had to be removed before final API
Cody Russell wrote:
On Thu, 2008-09-25 at 02:02 +0200, Christian Dywan wrote:
* gtk_widget_get_allocation
Removed in 2.14.1
The prototype of this function was not agreed upon among the core
developers. So the decision was deferred to the next Gtk version.
It had to be removed
Hi,
On Fri, Apr 17, 2009 at 9:38 PM, Brian J. Tarricone bj...@cornell.edu wrote:
I assume the issue was with returning a non-primitive type by-value and not
as a pointer.
Right. The normal way in glib/gtk would definitely be as you say.
void
gtk_widget_get_allocation (GtkWidget *widget,
On 04/17/2009 09:38 PM, Brian J. Tarricone wrote:
void
gtk_widget_get_allocation (GtkWidget *widget,
GtkAllocation *allocation)
{
g_return_if_fail (GTK_IS_WIDGET (widget) allocation);
memcpy (allocation, widget-allocation, sizeof(*allocation));
}
On 04/17/2009 09:02 PM, Cody Russell wrote:
This is rather old, but it never came up again after this so I'd like to
see what thoughts are about how to implement this in C. It was in 2.13
but removed before 2.14 because of disagreement, but I can't find any
public record of the disagreement in
I've just created a stable gtk-2-16 branch.
Future 2.16.x releases will be made off that branch, while development
towards 2.18 proceeds on master.
Matthias
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org