Re: Problem with installing GTK+-2.0.0 on Fedora Core 6



It looks like you've already asked the question before:
http://mail.gnome.org/archives/gtk-app-devel-list/2009-March/msg00115.html
as I understood, you have "Main Loop" (read about it in Gtk and GLib),
a thread which get data from your "stuff" and calculates the average
value.

So, don't try to make main loop runs faster than it is. maybe you
should send a refresh (or repaint, update) signal to your control.
what do you think ab. it?

2009/5/11 Adeel Malik <adeelmalik78 yahoo com>:
Hi,
ÂÂÂÂÂ The main gtk thread needs to refresh an image widget (for status
indication, GREEN or RED) along with a couple of 'status variables'
e.gÂBlock/Symbol error rate using labels. There is a start button in the GUI
associated with a data acquisition routine that computes the value of the
aforesaid variables and in a busy while loop. All I want is to compute the
average varibale value, say for last 1000 iterations, and display on the GUI
after every 100 ms or so.
cheers,
Adeel

--- On Mon, 5/11/09, Vlad Volodin <vest 84 gmail com> wrote:

From: Vlad Volodin <vest 84 gmail com>
Subject: Re: Problem with installing GTK+-2.0.0 on Fedora Core 6
To: adeelmalik78 yahoo com
Cc: "gtk-app" <gtk-app-devel-list gnome org>
Date: Monday, May 11, 2009, 11:43 AM

Hello,

What is the purpose of your update? Do you want to refresh a widget,
or anything else?

Vlad Volodin



2009/5/11 Adeel Malik <adeelmalik78 yahoo com>:
Hi, I was wondering how to update the gtk_main_thread function after a
fixed time interval (in milliseconds)Âas g_timer_add function provides a
quick
solution to that. Could someone suggest how to go about it ?.

Thanks,
Adeel

--- On Sat, 5/9/09, Ardhan Madras <ajhwb knac com> wrote:

From: Ardhan Madras <ajhwb knac com>
Subject: Re: Problem with installing GTK+-2.0.0 on Fedora Core 6
To: adeelmalik78 yahoo com
Cc: gtk-app-devel-list gnome org
Date: Saturday, May 9, 2009, 7:49 PM

One of GTK+ dependency is GLib, each GTK+ version has it's GLib
version
dependency too, if you try to compile a newer GTK+ version in a system
that has
not meet it's minimal requirement of GLib version then they will
complain.

You tried to update GLib on your distro using a package manager, you will
got
nothing to do because your distro will not broke all dependency that it
already
made. Moving from 2.4.0 to 2.12.3 is not trivial, this will break many
applications that already installed, so they must have to update all
applications to meet the new dependency. Distributor tend to release a new
distro version rather than rebuild and update applications in the their
current
version.

g_timer_add()? i don't know if this was a obsolete function, but i
think
there are a lot way to write codes such this function does. I can't
see a
reason why you should move to a version of GTK+ because of this function!

--- ajhwb


--- adeelmalik78 yahoo com wrote:

From: Adeel Malik <adeelmalik78 yahoo com>
To: gtk-app-devel-list gnome org
Subject: Problem with installing GTK+-2.0.0 on Fedora Core 6
Date: Fri, 8 May 2009 21:13:24 -0700 (PDT)


Hi All,
ÂÂÂÂÂÂÂ I am doing application development on Fedora Core 6 Linux
machine which had GTK version 1.2.1 already installed. I needed to use
g_timer_add gnomeÂfunction in my gtk application which doesn't seem
to be
supported on this version. So i tried to install the newer version of
GTK+-2.0.0
from the gtk.org web page.
Once I copied tar.gz file and tried to install the app. by running the
'./configure' script, the insatallation process stopped at the
following
error messages:

---------------------------------------------------------------------------------------------------------------------------------
checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.12.3, but GLIB
(2.4.0)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the
error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:

---------------------------------------------------------------------------------------------------------------------------------

ÂI treid to update the glib library by running:

'yum update glib'Â or 'yum install glib' but it appeared
that
kernel couldn't find the match and issued the following messages:

---------------------------------------------------------------------------------------------------------------------------------
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
core 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
extras 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Could not find update match for glib
No Packages marked for Update/Obsoletion

---------------------------------------------------------------------------------------------------------------------------------
I was wondering whether the problem is with the 'yum' package as
it is
unable to find the requestedÂGlib library. Since the whole point of
installing
the new version of GTK was to be able to use the 'g_timer_add'
function, can some one suggest if it is possible to use this function with
the
GTK 1.2.1 version. If not, can someone point out how can I fix the
installation
error if GTK+-2.0.0.

Thanks,
Adeel




_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




_____________________________________________________________
Listen to KNAC, Hit the Home page and Tune In Live! --->
http://www.knac.com



_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]