I don't know if GThread was added since GTK+ 1.2, if yes, then maybe the
wrapper
was deprecated for now. Why not to use POSIX Thread (pthread)? gthread is just
a pthread wrapper. GTK+ 1.2 is very obsolete.
If you are in GTK+ 2, just add:
pkg-config --cflags gthread-2.0 (lflags) and
pkg-config
Hi Ardhan,
Currently I have GTK+1.2 version installed on the system which
is giving 'undefined reference' errors for function g_thread_create function
once I compile the code. Is there any way around or I need to upgrade to
GTK+2.0 version.
Adeel
--- On Mon, 3/23/09, Ardhan Ma
- Original Message -
From: "Tadej Borovšak"
I'm no expert at those things, but during my coding with gtk I learned
some things about memory management that I described in this forum
post. You may find it useful quick-start introduction into official
gobject and gtk documentation.
http:/
2009/3/23 John Emmas :
> Thanks guys,
>
> I've been following a (pretty well respected) book about GTK development but
> it only seems to use gtk_widget_destroy() for dialog boxes. For example, a
> dialog box might get created using gtk_dialog_new_with_buttons() and
> eventually gets destroyed wit
Thanks guys,
I've been following a (pretty well respected) book about GTK development but
it only seems to use gtk_widget_destroy() for dialog boxes. For example, a
dialog box might get created using gtk_dialog_new_with_buttons() and
eventually gets destroyed with gtk_widget_destroy(). But else
On Mon, 2009-03-23 at 09:49 +, John Emmas wrote:
> Does gtk_window_new() allocate any system memory? I've always assumed
> so - and yet whenever I see examples of gtk_window_new() in use, the
> returned pointer is never freed anywhere, which suggests that no memory was
> ever allocated. Which
Does gtk_window_new() allocate any system memory? I've always assumed
so - and yet whenever I see examples of gtk_window_new() in use, the
returned pointer is never freed anywhere, which suggests that no memory was
ever allocated. Which is right?
Thanks,
John
___
If you want to use a thread and to prevent blocking, the thread code maybe
something like this:
thread_func ()
{
while (loop_condition)
{
/* do data acquisition */
if (condition_1)
g_idle_add ();
if (condition_2)
g_idle_add ();
...
/* small dela
dhk schrieb:
> Is it possible to have a single vertical scrollbar scroll multiple
> treeviews?
>
> To avoid using a horizontal scroll on a large set of data I broke the
> data up into multiple treeviews. However, I would like to have one
> scroll control all the views at the same time instead of e
Hi,
In the button calback function I need to do data acquisition and processing
in real-time before updating the status periodically (i.e every 1ms) using
g_timeout_add function. So thatswhy there is a while loop in the callback
function.
Since current approach is not working, can I use thr
10 matches
Mail list logo