Re: Very strange bug - memory alignment - after upgrading to GLib 2.12.4-1

2006-10-09 Thread Fabricio Rocha
Hi, Tomas and everyone... You could try to set a watchpoint on the guint8 var to see what changes it. And you could show us your code, maybe someone sees something... Regards - -- tomás Sure. It´s a piece of the RADiola project I have written about some time ago -- slow but solid devel

Re: Very strange bug - memory alignment - after upgrading to GLib 2.12.4-1

2006-10-09 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Oct 09, 2006 at 01:56:49PM -0300, Fabricio Rocha wrote: > Dearest ones, > >Yesterday I upgraded GLib from 2.12.3-2 to 2.12.4-1, Debian > Unstable installation. After that, a piece of my program which was > compiling and working perfe

Re: polling sockets using glib

2006-10-09 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Oct 09, 2006 at 09:20:59AM +1000, Peter Robinson wrote: > Hi, > I am writing a server application (using glib) in which I want to be > able to (frequently) turn polling on and off for given sockets. > > I am currently using g_io_add_watch to

Re: Examples of how to derive from GObject?

2006-10-09 Thread Samuel Cormier-Iijima
Most of the best examples would come from source code itself, such as Gtk+, GStreamer, Telepathy, etc. Also, a much easier way to create GObjects is to use gob2 (http://www.5z.com/jirka/gob.html). I'm writing a bittorrent client using GObjects right now, so if you have some more specific questions,

Examples of how to derive from GObject?

2006-10-09 Thread Nickolai Dobrynin
I was wondering if someone could point me to the code that demonstrates the process of inheriting from GObject? I find the online tutorial hard to follow because it only shows a few code fragments without presenting the complete picture. Any additional online (re)sources? Many thanks, Nickolai

Curiousity about GtkSpinButton

2006-10-09 Thread Fabricio Rocha
Hi, folks, I have browsed through the GTK Reference but did not find a clue about a strange behaviour of GtkSpinButton which I could see using GDB stepthrough. When I click ONCE one of its buttons (up or down), the callback function (on_spinbutton_change(), for example) runs NOT once, b

SpinButton and Decimal separator

2006-10-09 Thread Matias Torres
Hi all, I'm using a spin button to enter float numbers. The default locale has the ',' as decimal separator, but i want to also use the '.' as the decimal separator. Is there a way to change this without changing the locale? Thanks in advance, matias

Re: removing borders from button

2006-10-09 Thread Michael L Torrie
On Mon, 2006-10-09 at 18:03 +0530, [EMAIL PROTECTED] wrote: > Hi, > > I have a GtkImage on a GtkButton. > I want to remove the spacing/border between the GtkButton border and the > GtkImage. > Also I want to remove the GtkButton outline. > I'm using GTK2.0. > > Please let me know if there is any

Text formatting question (code example sought)

2006-10-09 Thread Jason Compton
We are using GTK extensively in a game and are trying to improve the look-and-feel of our scrolling text. Our interface programmer has run into a roadblock, so I am looking for pointers to a solution, hopefully in the form of example code. We are looking for example code (can be bare bones) whi

Very strange bug - memory alignment - after upgrading to GLib 2.12.4-1

2006-10-09 Thread Fabricio Rocha
Dearest ones, Yesterday I upgraded GLib from 2.12.3-2 to 2.12.4-1, Debian Unstable installation. After that, a piece of my program which was compiling and working perfectly has gone nuts. In a given section, I call a function to create an instance of a structure with g_new(), and

removing borders from button

2006-10-09 Thread krithika.sivakumar
Hi, I have a GtkImage on a GtkButton. I want to remove the spacing/border between the GtkButton border and the GtkImage. Also I want to remove the GtkButton outline. I'm using GTK2.0. Please let me know if there is any way it can be done. Thanks, Krithika ___

polling sockets using glib

2006-10-09 Thread Peter Robinson
Hi, I am writing a server application (using glib) in which I want to be able to (frequently) turn polling on and off for given sockets. I am currently using g_io_add_watch to add a watch on a socket and g_source_remove to remove the watch. This seems like an expensive way of doing what I want.

gtk+ compile related query

2006-10-09 Thread krithika.sivakumar
Hi, I am trying to compile the GTK+ code checked out from CVS When I run the autogen --- following warning is printed (I have set ACLOCAL_FLAGS=-I /usr/share/aclocal): Can anyone help with this? [root@ Wipro142 gtk+]# sh autogen.sh --prefix=$PREFIX --with-gdktarget=directfb --without-x WARNING