Bin Chen wrote:
在 2008-01-07一的 13:18 [EMAIL PROTECTED]
for(i=start_count;iend_count;i++)
{
//g_print(i = (%d)\n,i);
while(j10)//To kill time, keep counting until a
lakh
j++;
j = 0;//Make j 0 for
On Mon, 7 Jan 2008 13:18:07 +0530 (IST)
[EMAIL PROTECTED] wrote:
[Stuff snipped]
Some comments on your code, aside from the basic conceptual problems:
pdata = (ProgressData *)g_malloc0(sizeof(ProgressData));
Useless cast, and useless parentheses around sizeof's operand.
IN REPLY TO DANS COMMENTS:
1. I am using the g++ compiler and g++ doesnt let a gpointer[return type
of g_malloc0()] or a void pointer point a gchar or a ProgressData pointer.
That is why the typecast.
2. I need more explanation here:
txt_start_count = (gchar
Friends,
How about the idea of emitting a signal with the value of the fraction
when I want to get the progress bar updated, and having a signal handling
function for hte progress bar ? will that work ?
On Mon, January 7, 2008 2:03 pm, Dan H wrote:
--=neXtPaRt_1199694274
[EMAIL PROTECTED] ha scritto lo scorso 07/01/2008 08:34:
Hey Bin Chen[or how do I call you :-)],
First of all, thank you very much for your instant reply.
Let me give a simple pseudo-code explaining my problem. Please see what I
can do with this.
Program Goal: Do work w1 iterations
On Mon, 7 Jan 2008 14:51:11 +0530 (IST)
[EMAIL PROTECTED] wrote:
IN REPLY TO DANS COMMENTS:
1. I am using the g++ compiler and g++ doesnt let a gpointer[return
type of g_malloc0()] or a void pointer point a gchar or a
ProgressData pointer. That is why the typecast.
Ah, so you're using it
You could probably use libview, also. It is a bunch of widgets that vmware
made for their user interface. I believe it has an ip address entry widget.
Go to freshmeat.net and look up libview.
- Original Message
From: Micah Carrick [EMAIL PROTECTED]
To: gtk-app-devel-list@gnome.org
Hey Carlo,
Thanks man. Your idea works, but I am still not able to figure out
how it works .
Let me first tell you all what I have done.
I have a button which when clicked shall start iterating from 0 to
1000[say], and for each iteration, does some work[counts another variable
j
Quoting [EMAIL PROTECTED]:
//Call progress_timeout() every 1 second.
g_timeout_add (100, progress_timeout, pdata);
Ok, you want glib to call progress_timeout() in 100msecs. Glib saves
the data somewhere internally and then returns. There is no second
thread that would call the
Hi,
I want the gtk_entry widget to be in disabled state, the appearance
will be grayed out, how to do this?
Thanks.
Bin
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Hi Bin,
I guess that the method gtk_editable_set_editable() will help you do this.
Hope I answered your question.
Vijay
On Mon, January 7, 2008 6:02 pm, Bin Chen wrote:
Hi,
I want the gtk_entry widget to be in disabled state, the appearance
will be grayed out, how to do this?
Thanks its right!
On Jan 7, 2008 8:47 PM, Kristian Rietveld [EMAIL PROTECTED] wrote:
On Mon, Jan 07, 2008 at 08:32:35PM +0800, Bin Chen wrote:
I want the gtk_entry widget to be in disabled state, the appearance
will be grayed out, how to do this?
You probably want to use
GLib 2.15.1 is now available for download at:
ftp://ftp.gtk.org/pub/gtk/2.15/
http://ftp.gnome.org/pub/GNOME/sources/glib/2.15/
glib-2.15.1.tar.bz2 md5sum: b3a2ca18e618927d03d39000f2155958
glib-2.15.1.tar.gz md5sum: 65553803645ae660b6cf1d2ae6e9876f
This is the second development release
GLib 2.14.5 is now available for download at:
ftp://ftp.gtk.org/pub/glib/2.14/
http://download.gnome.org/sources/glib/2.14/
glib-2.14.5.tar.bz2 md5sum: c7eedaacd39d3606c307da5ea7fc7018
glib-2.14.5.tar.gzmd5sum: 12086563b4a87221a66d15bab96dc527
This is a bug fix release in the 2.14
On Sun, 2008-01-06 at 18:50 -0500, Morten Welinder wrote:
On Jan 6, 2008 3:43 PM, Mikael Hermansson [EMAIL PROTECTED] wrote:
Hmm just saw that g_build_filename does not work for GIO Uris
its simply strips away separator for example:
g_build_filename(file:///, g_get_home_dir(),
On Mon, 2008-01-07 at 10:37 -0200, Rodolfo Lima wrote:
Hi, I wonder if there's a way to set up a user-defined function to be
called in every loop iteration. For what I saw in glib/gtk+ code, there
isn't a way to do that, but then I may be wrong.
This would be used in wxWidgets' GTK port,
On 06/01/2008, Mikkel Kamstrup Erlandsen [EMAIL PROTECTED] wrote:
On 06/01/2008, muppet [EMAIL PROTECTED] wrote:
On Jan 5, 2008, at 6:46 PM, Mikkel Kamstrup Erlandsen wrote:
The wait_for_signal() method process the main loop until a signal is
emitted on a given object - or maybe until
GLib 2.15.1 is now available for download at:
ftp://ftp.gtk.org/pub/gtk/2.15/
http://ftp.gnome.org/pub/GNOME/sources/glib/2.15/
glib-2.15.1.tar.bz2 md5sum: b3a2ca18e618927d03d39000f2155958
glib-2.15.1.tar.gz md5sum: 65553803645ae660b6cf1d2ae6e9876f
This is the second development release
On Mon, 2008-01-07 at 16:38 -0500, Mathias Hasselmann wrote:
3) Add some property to GtkSizeGroup to switch between
minimum-size, and natural-size mode? Minimum-size mode is
the
current behavior, in natural-size mode the group would use
the maximum
hi everyone;
this is the usual reminder for the IRC GTK+ Team Meeting. the meeting
will be held in the #gtk-devel channel on irc.gnome.org, at 20:00
UTC[1].
the points are:
* status of GIO API
* next GLib 2.15 release
* extended layout API
* miscellaneous
eventual changes will be
GLib 2.14.5 is now available for download at:
ftp://ftp.gtk.org/pub/glib/2.14/
http://download.gnome.org/sources/glib/2.14/
glib-2.14.5.tar.bz2 md5sum: c7eedaacd39d3606c307da5ea7fc7018
glib-2.14.5.tar.gzmd5sum: 12086563b4a87221a66d15bab96dc527
This is a bug fix release in the 2.14
2008/1/7, Clemens Eisserer [EMAIL PROTECTED]:
Hello Kalle,
I guess it could work if one derives a GtkCairoStyle from GtkStyle and
add the cairo-based API to that. That way casts to GtkStyle should
work and engines could implement the old api with the wrapper
approach.
Or was that
And here is the attachments too!
*sigh*
2008/1/8, Kalle Vahlman [EMAIL PROTECTED]:
2008/1/7, Clemens Eisserer [EMAIL PROTECTED]:
Hello Kalle,
I guess it could work if one derives a GtkCairoStyle from GtkStyle and
add the cairo-based API to that. That way casts to GtkStyle should
23 matches
Mail list logo