How to convert GtkWidget into GdkPixbuf

2008-08-07 Thread Samuel Rabadán
hope you can understand all I’m trying to tell you :-). Thanks in advance. Samuel Rabadán. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

How to convert GtkWidget into GdkPixbuf

2008-08-06 Thread Samuel Rabadán
hope you can understand all I’m trying to tell you :-). Thanks in advance. Samuel Rabadán. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

How to convert GtkWidget into GdkPixbuf

2008-08-06 Thread Samuel Rabadán
hope you can understand all I’m trying to tell you :-). Thanks in advance. Samuel Rabadán. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

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

Re: How to create a simple multilingual GUI

2007-05-14 Thread Samuel Cormier-Iijima
e left, and clicking on one of these languages changes the UI translations at runtime). You might want to check the Ubiquity code to see how they do this? Samuel Gabriel > > ___ > gtk-app-devel-list mailing list >

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

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]>

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: GObject ref counting

2006-12-27 Thread Samuel Cormier-Iijima
hat's what I do with gobjects) Samuel On 12/27/06, Philip Kovacs <[EMAIL PROTECTED]> wrote: > Is it good practice always to ref count GObject's passed into functions -- > even if you know for certain that the primary reference is in your control, > i.e. the first reference

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: Can't get basic hello world app to compile... help?

2006-11-25 Thread Samuel Cormier-Iijima
Try looking at the output of pkg-config --cflags --libs gtk+-2.0 You might be missing some dependencies like cairo, pango, etc. (although I thought the package manager took care of that for you). If you also want the gnome development libraries, try installing the gnome-core-devel package. Samuel

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: 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, > > -

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: GtkTextView: Applying tags at the cursor

2006-10-25 Thread Samuel Lidén Borell
I've already solved this, but thanks for your reply. Madhusudan E wrote: > Hi, > You can use GtkTextTag. > Tags should be in the GtkTextTagTable for a given GtkTextBuffer before using > them with that buffer. > gtk_text_buffer_create_tag() is the best way to create tags. See gtk-demo > for numer

GtkTextView: Applying tags at the cursor

2006-10-24 Thread Samuel Lidén Borell
now I surround the cursor with two zero-width spaces (an invisible Unicode character) and then I apply the tag to the spaces. This gives new text the right formatting, but it's an ugly solution that has some bugs... Kind regards, Samuel Liden Borell _

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, > witho

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: (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] <[EM

Re: Examples of how to derive from GObject?

2006-10-09 Thread Samuel Cormier-Iijima
tions, I'd be happy to try to answer them :-) Samuel On 10/9/06, Nickolai Dobrynin <[EMAIL PROTECTED]> wrote: > 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

Re: Motion picture with gdkpixbuf

2006-10-08 Thread Samuel Cormier-Iijima
gtk_widget_queue_draw(da); > >g_usleep(50); > } > > Does somebody help me? I'm assuming this is in a key-pressed callback - in that case, you would have to use gdk_threads_enter ()and gdk_threads_leave() (I think...). However, a much cleaner solution (instead of the while l

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: 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: 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: 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

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: 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

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
;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

Recording widget motion

2006-09-06 Thread Samuel Cormier-Iijima
ould be able to push "play" and see his motions "played back" for him, exactly the way he dragged it. I was wondering if there was a way to do this (I was considering GStreamer elements but that seemed like overkill). Any pointers to sample code, etc. w

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

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 +0

Re: Sockets in GTK+?

2006-08-22 Thread Samuel Cormier-Iijima
Ah, thanks, thats exactly what I was looking for... i wonder why it didnt show up on any google searches for gobject networking library. hmm, whatever, at least i wont have to roll my own :-) (sorry for weird puctuation, i`m using a weird canadian keyboard) samuel On 8/22/06, Edward Catmur

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, Fer

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

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

2006-08-15 Thread Samuel Cormier-Iijima
en setting GtkEntry for example). Try dropping the * and see if that works. Samuel On 8/15/06, Fabricio Rocha <[EMAIL PROTECTED]> wrote: > Hello, guys! > > Sorry, I know i´m crossing the borders of off-topic. But I had to tell > you that I could get rid of SEGFAULTs by using a

Re: Bug in GLib, libglade, libc??

2006-08-14 Thread Samuel Cormier-Iijima
ry too much about memory management. If trying these things doesn't work, you can always post the code ;-) Cheers, Samuel On 8/14/06, Fabricio Rocha <[EMAIL PROTECTED]> wrote: > Thank you very much, Yeti and Samuel, for your replies! > > I really believe that there is

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: 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: Bug in GLib, libglade, libc??

2006-08-11 Thread Samuel Cormier-Iijima
with them either. (Of course, I could be totally wrong :-) Could you post some code from the application? Otherwise, look for the part of the stack trace that contains code from your program, which could lead to more insight. Cheers, Samuel On 8/11/06, Fabricio Rocha <[EMAIL PROTECTED]>

Tree widget with multiple selections

2006-05-16 Thread Samuel
Hi, I was wondering if there was already a GTK widget that's like the one people use in installers... (I don't know exactly how to explain it, but there's a list of features in a tree format, and if you select everything under a node, that nodes checked too, but if only part are selected, then the