Re: Bug in GLib, libglade, libc??

2006-08-11 Thread Samuel Cormier-Iijima
First of all, I highly doubt the bug is in libc or libxml. Most of the time bugs like these are the result of bad code in the application (as in not following the API, passing bad pointers and such) and although libglade and gtk should not let these things fall through, the fault is probably not wi

Re: Fwd: Systray icon..

2006-08-13 Thread Samuel Cormier-Iijima
I tried compiling it once, and it didn't seem to work with GTK 2.0... :-) On 8/13/06, Enrico <[EMAIL PROTECTED]> wrote: > Fernando Apesteguía pronuncio' le seguenti parole il 11/08/2006 17:09: > > Using eggtrayicon.c and eggtrayicon.h > > > > Best regards > > > > Many thanks for the help! I have n

Re: Fwd: Systray icon..

2006-08-13 Thread Samuel Cormier-Iijima
error-code/messages ? > James, > > > On Sun, 2006-08-13 at 10:58 -0500, Samuel Cormier-Iijima wrote: > I tried compiling it once, and it didn't seem to work with GTK 2.0... :-) > > On 8/13/06, Enrico <[EMAIL PROTECTED]> wrote: > > Fernando Apesteguía pron

Re: Bug in GLib, libglade, libc??

2006-08-14 Thread Samuel Cormier-Iijima
Hi, First of all, this should really be better documented elsewhere, but valgrind has some problems debugging and profiling multithreaded code (such as Gtk/Glib). To get some more accurate results, try the following: G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind -v --show-reachable "myapp"

=?ISO-8859-1?Q?Re:_Bug_in_GLib, _libglade, _libc=3F?= ? (ok, it´s not GTK specific...)

2006-08-15 Thread Samuel Cormier-Iijima
OK, Your pointer code is all screwed up :-) g_strdup already allocates memory so you don't need to do g_malloc before it, just g_strdup_printf right into your variable. Also, your getting a segfault because you're dereferencing the pointer where the pointer itself is expected (when setting GtkEntr

Re: Sockets in GTK+?

2006-08-21 Thread Samuel Cormier-Iijima
Note that however GNet does NOT use GObject, it rolls its own object type... I kinda wanted a twisted-like framework so that I could for example subclass a GNetServer or otherwise connect signals to it to respond to network events, and GNet doesnt let you do that in the GObject way. I`m thinking I

Re: Resizing window

2006-08-21 Thread Samuel Cormier-Iijima
I had the same problem with a FileChooserWidget with an extra GtkExpander widget in it. One solution is to make the window fixed (unresizable). Of course, the downside is that the user can't ­­resize it himself. Let me know if you find another solution! Cheers, Samuel On 8/21/06, Fernando Apestegu

Re: Sockets in GTK+?

2006-08-22 Thread Samuel Cormier-Iijima
<[EMAIL PROTECTED]> wrote: > On Mon, 2006-08-21 at 19:19 -0400, Samuel Cormier-Iijima wrote: > > Note that however GNet does NOT use GObject, it rolls its own object > > type... I kinda wanted a twisted-like framework so that I could for > > example subclass a GNetServer or othe

Re: The dial's pointer looks like a sawtooth,how to render it ?

2006-08-29 Thread Samuel Cormier-Iijima
For a very good, up-to-date, and GObject-based widget written using cairo, check out this tutorial: http://gnomejournal.org/article/34/writing-a-widget-using-cairo-and-gtk28 Cheers, Samuel On 8/29/06, David Nečas (Yeti) <[EMAIL PROTECTED]> wrote: > On Tue, Aug 29, 2006 at 04:17:50PM +0800, chao

Re: Musings on the proper use of g_error and GError

2006-09-02 Thread Samuel Cormier-Iijima
On 9/2/06, Edward Catmur <[EMAIL PROTECTED]> wrote: > On Sat, 2006-09-02 at 13:19 -0400, Philip Kovacs wrote: > > Looking at the glib code itself, e.g. in gmem.c: in the g_malloc() > > function, > > if the memory was not allocated as expected, glib does this: > > > > g_error ("%s: failed to alloc

Recording widget motion

2006-09-06 Thread Samuel Cormier-Iijima
Hi everyone, I have a GtkAdjustment and HScale and I'd like to be able to record and playback the user's movement. To clarify: a user should be able to push a "record" button, after which he can drag the Scale widget however he wishes for a couple of seconds. Afterwards, he should be able to push

Re: Recording widget motion

2006-09-07 Thread Samuel Cormier-Iijima
;ll wiggle around by itself during the song playback). If you use Reason 3, you'll know what I mean. Anyways, I've found out a (unclean) way to do this, and I'm looking into using GStreamer and GstController's for this. Still, any links or pointers would be appreciated. Samuel

Re: Recording widget motion

2006-09-07 Thread Samuel Cormier-Iijima
that is hackish and not stable Anyways, I'm just rambling, it works now :-) Now I just need to hook this up to a GstController... but that's a topic for another list, and I have to read up more anyways. Thanks :-) Cheers, Samuel Cormier-Iijima On 9/7/06, David Nečas (Yeti) <[E

Re: Recording widget motion

2006-09-07 Thread Samuel Cormier-Iijima
07, 2006 at 09:42:16AM -0400, Samuel Cormier-Iijima wrote: > > > > I thought g_timeout_add > > would cause timing to be off (it would unsynchronize over time), but > > using a GTimer fixed it. > > Yes, g_timeout_add() is just a best-effort timer, no > real-time. But

Widgets to use to conform to HIG

2006-09-09 Thread Samuel Cormier-Iijima
d how these things fit together to align and display nicely. Can somebody point me to either a .glade file or some code for dialogs such as the following? http://developer.gnome.org/projects/gup/hig/2.0/images/layout2.png Thanks, Samuel Cormier-Iijima __

Re: Widgets to use to conform to HIG

2006-09-09 Thread Samuel Cormier-Iijima
ples along with the HIG so that others can find it more easily. Samuel Cormier-Iijima On 9/9/06, Samuel Cormier-Iijima <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I was reading the Gnome HIG and came across a couple of dialogs that > are similar to what I would like to have in a p

Re: Resizing window

2006-09-09 Thread Samuel Cormier-Iijima
and the expander makes the window grow bigger to fit the dialog). However, my expander grows *into* the window - the window doesn't change size, the filechooser widget shrinks. How can I fix this to make it act similarly to the open file dialog? Thanks, Samuel Cormier-Iijima On 8/22/06,

Re: Documention on redering text

2006-09-12 Thread Samuel Cormier-Iijima
You're probably looking for pango: http://developer.gnome.org/doc/API/2.0/pango/ On 9/12/06, LWATCDR <[EMAIL PROTECTED]> wrote: > Anybody know of where I can find examples of rendering text, seating fonts, > and getting the length of a sting in pixels using GDK? > I would search the mailing list b

Re: implementing a collapsable/expandable widget

2006-09-26 Thread Samuel Cormier-Iijima
On 9/26/06, Michael 'Mickey' Lauer <[EMAIL PROTECTED]> wrote: > Hi, for one project I need to implement a widget container that can > be collapsed/expanded to show its containment. It should look > like the mockup from http://vanille.de/temp/preview-widget-mockup.jpg > > Is there something like tha

Re: Motion picture with gdkpixbuf

2006-10-08 Thread Samuel Cormier-Iijima
On 10/8/06, Kim Jongha <[EMAIL PROTECTED]> wrote: > Greeting, > I want to move a picture with gdkpixbuf when I press some key. > > It's hard to explain , but when I press some key, I want some image to > move from position 1 to position 2, just like a motion picture . > > - -- > |

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,

Re: (Easy?) Newbie enquiry re: pointers

2006-10-10 Thread Samuel Cormier-Iijima
Whenever you set the text, the widgets will keep copies of the text for themselves. (they duplicated the string so it's not showing the actual contents of *your* string). To update it, you'll have to set the text again for the widgets. :-( Samuel On 10/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>

Re: (Easy?) Newbie enquiry re: pointers

2006-10-10 Thread Samuel Cormier-Iijima
s for strings it doesnt really matter because it's not that much memory wasted. Still, gnome/gtk's memory usage seems pretty high (see ReducingMemoryUsage on the wiki) Samuel On 10/10/06, David Nečas (Yeti) <[EMAIL PROTECTED]> wrote: > On Tue, Oct 10, 2006 at 01:58:20PM -040

Re: A pair of question on TreeViews

2006-10-16 Thread Samuel Cormier-Iijima
The GtkTreeView tutorial has an example on how to make custom cell renderers: http://scentric.net/tutorial/sec-custom-cell-renderers.html Samuel On 10/16/06, Gabriele Greco <[EMAIL PROTECTED]> wrote: > - There is a way to change at THEME level, or with a simple rc file, > without having to write

Plugins, callbacks, signals, oh my!

2006-10-31 Thread Samuel Cormier-Iijima
o learn more about this. Thanks alot for any tips :-) Samuel Cormier-Iijima ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: questionfor progress bar

2006-11-05 Thread Samuel Cormier-Iijima
gtk_container_add (GTK_CONTAINER (window), bar); gtk_widget_show_all (window); g_thread_create (file_thread, NULL, TRUE, NULL); gtk_main (); } Hope that helps! Samuel Cormier-Iijima On 11/5/06, Van H Tran <[EMAIL PROTECTED]> wrote: > > Hi, > > -

Re: socket question

2006-11-05 Thread Samuel Cormier-Iijima
#x27;re trying to do, I'd be able to help you out more... Samuel Cormier-Iijima [1] http://www.gnetlibrary.org/ On 11/5/06, Chris Cole <[EMAIL PROTECTED]> wrote: > hello all, i'm developing a client side gui whose main task is to > process data coming from a remote serv

Re: Can't get basic hello world app to compile... help?

2006-11-25 Thread Samuel Cormier-Iijima
Cormier-Iijima On 11/25/06, Brian Dixon <[EMAIL PROTECTED]> wrote: > Hi, > > I've got a relatively new installation of Ubuntu Dapper Drake on my > machine and have installed what I thought was a pretty complete set of > GTK installations, e.g. libgtk2.0-dev, the -eng

GObject constructors

2006-12-07 Thread Samuel Cormier-Iijima
rtain CONSTRUCT_ONLY params set otherwise it should not create the object. I looked through the API but couldn't find anything regarding this. Thanks for any help! Samuel Cormier-Iijima ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail

Re: GObject ref counting

2006-12-27 Thread Samuel Cormier-Iijima
In a single threaded app, I don't think it would matter too much. However, if you're using multiple threads that handle this object, unless you know exactly what's happening it's probably a good idea. I could be wrong about this though, can anyone back this up? (at least, that's what I do with gobj

Re: GObject ref counting

2006-12-27 Thread Samuel Cormier-Iijima
On 12/27/06, Samuel Cormier-Iijima <[EMAIL PROTECTED]> wrote: > In a single threaded app, I don't think it would matter too much. That is, if you're not calling other callbacks within that function of course :-) > However, if you're using multiple threads that handl

Re: is there a g_option_print_usage() command?

2007-03-13 Thread Samuel Cormier-Iijima
I remember there was a bug for this somewhere, but I can't seem to find it in bugzilla anymore. If I recall correctly, there's no easy way to do this now, but I think the next release might have something. Try searching bugzilla... Samuel On 3/13/07, Rick Jones <[EMAIL PROTECTED]> wrote: > James >

Re: Native character isn't supported by gtk+.

2007-03-31 Thread Samuel Cormier-Iijima
I remember I had this problem on Windows a while back. Make sure that pango is installed correctly; also, try running the application in a console window to see if it gives any error messages... Samuel On 4/1/07, Kun Niu <[EMAIL PROTECTED]> wrote: > Dear all, > > I'm trying to use glade for my de

Re: How to create a simple multilingual GUI

2007-05-14 Thread Samuel Cormier-Iijima
On 5/14/07, Gabriel Schulhof <[EMAIL PROTECTED]> wrote: > > Hi! > > On Sun, 2007-05-13 at 02:19 +0200, David Nečas (Yeti) wrote: > > Run-time switching of languages is not > > possible http://bugzilla.gnome.org/show_bug.cgi?id=313736 > > Oh, it's possible, just very difficult. You have to keep all

Re: gtk+ about dialog doesn't close

2007-06-01 Thread Samuel Cormier-Iijima
Since GtkAboutDialog is a subclass of GtkDialog, it is intended to be used as a modal dialog. Hence, you would do something like: gtk_dialog_run(about_dialog); gtk_widget_hide(about_dialog); Also, see http://developer.gnome.org/doc/API/2.0/gtk/GtkAboutDialog.html#gtk-show-about-dialog Samuel O