Re: Add keyboard drivers

2007-07-25 Thread Tristan Van Berkom
On Wed, 2007-07-25 at 11:10 -0700, Matthew Jiang wrote: I am porting GTK to an ARM board. I need to add our board's keyboard driver. Where should I add it and how to do it? Do you use the xlib gdk backend on an arm platform ? If so, you'd need to add an input module to the X server and specify

Re: Add keyboard drivers

2007-07-25 Thread Tristan Van Berkom
On Wed, 2007-07-25 at 15:18 -0700, Matthew Jiang wrote: No, I don't use X11 in my system. Well events are comming from the gdk backend, so first question would be what gdk backend you are running, then you need to find out how that backend gets keyboard/mouse input and work from there (probably

Re: Cannot get realize() events on GtkViewport created by libglade

2007-07-23 Thread Tristan Van Berkom
On Mon, 2007-07-23 at 10:41 -0500, [EMAIL PROTECTED] wrote: [...] So, my thought was to hook into some constructor-like event for some container widget, and then create my custom widgets in that event callback. That way I could at least begin to make progress. If you want a temporary way to

Re: Cannot get realize() events on GtkViewport created by libglade

2007-07-23 Thread Tristan Van Berkom
On Mon, 2007-07-23 at 12:34 -0500, [EMAIL PROTECTED] wrote: [...] If your toplevel widget is visible=True in the glade file then it will be shown by the time glade_xml_new() returns, so all the realize handlers have already run before ever connecting to the signal... if you hide the

Re: Cannot get realize() events on GtkViewport created by libglade

2007-07-23 Thread Tristan Van Berkom
On Mon, 2007-07-23 at 12:43 -0500, [EMAIL PROTECTED] wrote: Ok so here is your custom widget catalog for glade (goes in /usr/share/glade3/catalogs) : Two quick questions: 1) will this also work with Gazpacho? No. 2) If not, is there a ready-build package for Debian of Glade3? Debian

Re: Cannot get realize() events on GtkViewport created by libglade

2007-07-23 Thread Tristan Van Berkom
On Mon, 2007-07-23 at 11:53 -0700, [EMAIL PROTECTED] wrote: On Mon, 2007-07-23 at 13:28 -0500, [EMAIL PROTECTED] wrote: On Mon, 2007-07-23 at 12:34 -0500, [EMAIL PROTECTED] wrote: ... Yeah I said come by during the _week_ ! :D I'm around monday through *blink* Looks at watch. Looks at

Re: Adding widget types to [Glade|Gazpacho|libGlade]

2007-07-22 Thread Tristan Van Berkom
On Sat, 2007-07-21 at 14:27 -0500, David Hagood wrote: [...] These are 2 different programs, I dont see why they would try to install files in the same place. Two different programs, but aren't the catalog files the same format? The idea is that if I make my widget set available as libScope

Re: glade_xml_signal_autoconnect cannot find functions NOT in shared libs?

2007-07-20 Thread Tristan Van Berkom
On Fri, 2007-07-20 at 09:10 -0500, [EMAIL PROTECTED] wrote: [...] Unfortunately, it didn't work for me, but thanks for the ideas to try. Hi, what you need is -Wl,--export-dynamic in your app's link stage. Its not good enough to add that just anywhere on the command line, linker arguments have

Re: How to set signal_data via Glade for glade_xml_signal_autoconnect_full

2007-07-20 Thread Tristan Van Berkom
On Fri, 2007-07-20 at 09:26 -0600, Jim George wrote: [...] Perhaps glade-3 has a better way of doing this? We have room for improvement with GtkBuilder as opposed to libglade, already with GtkBuilder we'll be able to allow you to specify the object as a user data field and still chose

Re: gthread vs pthread

2007-07-17 Thread Tristan Van Berkom
On Tue, 2007-07-17 at 21:20 +0800, Gregory Hosler wrote: Hi, I've got a gtk+ application that needs a few threads put in it, to open up some bottlenecks. My question is whether I should go pthreads, or gthreads. I've played a bit with pthreads, so I have some familiarity with it. I'm

Re: Designing objects with GObject

2007-06-29 Thread Tristan Van Berkom
On Fri, 2007-06-29 at 13:40 +0200, Tomasz Jankowski wrote: You can do this, as you control set_property(). The problem is that this is a hack invisible to inspection, therefore it can lead to all sorts of odd behaviour. So it's exactly as I thought. I'll implement those properties

Re: GSlice: g_thread_init() must be called before all other GLib functions;

2007-06-19 Thread Tristan Van Berkom
On Tue, 2007-06-19 at 15:53 +0200, John Zoidberg wrote: [...] How can I get rid of this warning the correct way? Where am I supposed to place the g_thread_init() call? Put it before gtk_init(), and before initializing any libraries that might also use threading. The undefined reference error

Re: GtkImage/GdkPixbuf memory management

2007-06-06 Thread Tristan Van Berkom
On Sun, 2007-06-03 at 16:56 +0100, Michael Tweedale wrote: Could someone clarify something that doesn't seem to be explicit in the API documentation? Consider the following code: static GtkWidget *image; /* initialized to a fixed GtkImage */ void update(const char *s) { GdkPixbuf

GdkImage from GdkPixbuf

2007-05-29 Thread Tristan Van Berkom
I've been beating my head against the tree for this one for the last 2 days... so, is there some code out there that will gdk_pixbuf_render_image() ? I actually dont even want compositing, something like: memcpy (image-mem, pixbuf-pixels, image-bpl * image-height) would do fine (minus the

Re: GdkImage from GdkPixbuf

2007-05-29 Thread Tristan Van Berkom
On Tue, 2007-05-29 at 18:02 +0200, David Nečas (Yeti) wrote: On Tue, May 29, 2007 at 11:04:53AM -0400, Tristan Van Berkom wrote: I've been beating my head against the tree for this one for the last 2 days... so, is there some code out there that will gdk_pixbuf_render_image() ? I

Re: Global GladeXML

2007-05-26 Thread Tristan Van Berkom
On Sat, 2007-05-26 at 10:31 -0600, Jim George wrote: On 5/26/07, Felipe Balbi [EMAIL PROTECTED] wrote: Hello all, my problem is the folowing... I have a glade xml file being opened in my code... I wanna use the same pointer to this XML file in other functions... how could I do it??

Re: How to create a self contained GTK+ Application for Linux

2007-05-22 Thread Tristan Van Berkom
On Tue, 2007-05-22 at 20:29 +, Jeremy Roberson wrote: [...] And I get a segmentation fault. I then tried ldd and gdb and I get an instant segmentation fault. If I unset the LD_LIBRARY_PATH variable and then try ldd and gdb, they work but the application fails because it's linking against

Re: GtkAssistant - conditional flow

2007-04-25 Thread Tristan Van Berkom
On Wed, 2007-04-25 at 19:27 +0200, [EMAIL PROTECTED] wrote: Hi there, I have the following situation with GtkAssistant - first page is only informational introduction, second page contains two radio buttons, third page should contain some entries and fourth page is the summary. My problem

Re: How to make sure a symbol is present in the library used at run-time

2007-04-17 Thread Tristan Van Berkom
On Tue, 2007-04-17 at 12:48 +0200, Francesco Montorsi wrote: Hi, I need to build an app which needs a symbol from Pango library which exists only in some newer versions. Generally, we dont ship binaries (or we only ship binaries that were known to compile and run on a specific platform

Re: GTK Thread init problem

2007-04-16 Thread Tristan Van Berkom
On Mon, 2007-04-16 at 18:09 +0530, prabahar k wrote: hi i am trying to use a threaded GTK program. While running the program it gives segmentation fault and it seem to be an thread init problem. is there any thing i am missing? Please give u r comments. I dont understand why it would

Re: GTK+ CVS access FAQ out of date

2007-04-09 Thread Tristan Van Berkom
On Mon, 2007-04-09 at 16:08 +0200, Francesco Montorsi wrote: Hi, the only document I could find for checking out the CVS repo of GTK+ is this: http://www.gtk.org/faq/#AEN325 and it seems out of date since if I follow the istructions I get: [EMAIL PROTECTED]:~/work$

Re: Can A Drawable Canvas Receive Key Events?

2007-03-30 Thread Tristan Van Berkom
On Fri, 2007-03-30 at 13:02 -0700, Mike Melanson wrote: Hi, I have a standalone test app that has nothing inside the main window but a big, drawable RGB canvas (GtkDrawingArea). I can receive nearly any kind of event via the canvas: Expose, mouse motion, button press/release, scroll

Re: GtkComboBox and Libglade

2007-03-12 Thread Tristan Van Berkom
On Mon, 2007-03-12 at 16:21 +0100, Olivier Delhomme wrote: Hello, Is there a way to have a default value automatically selected in a combobox created with libglade ? Have you tried setting the Active Item property ? Cheers, -Tristan

Re: HTML Rendering Widget

2007-03-06 Thread Tristan Van Berkom
On Tue, 2007-03-06 at 23:28 +0200, Alan Lake wrote: I'm new to the use of GTK+, Glade libGlade. I need a widget that will render book texts formatted with HTML. Is there a source that lists non-standard widgets that might be downloaded and incorporated into Glade? Currently there is no

Re: How to capture keystrokes when GTK menu is open?

2007-02-20 Thread Tristan Van Berkom
On Wed, 2007-02-21 at 08:27 +1100, Justin Clift wrote: [...] Unsure if it gives keyboard events for the whole window system or not, but I'll play with it and find out! Heh no it wont, David pointed out one way of getting at all keyboard events - basically you need permission from the X server -

Re: libglade frustration

2007-02-15 Thread Tristan Van Berkom
On Wed, 2007-02-14 at 14:44 -0800, [EMAIL PROTECTED] wrote: [...] The users manual should be provided with every copy of a packaged distribution. The user's manual should provide sufficient instruction on how to operate libglade. If a developer finds himself needing to refer to the source to

Re: libglade frustration

2007-02-15 Thread Tristan Van Berkom
On Thu, 2007-02-15 at 05:55 +, [EMAIL PROTECTED] wrote: [...] You took it back to the point. I think metaphors don't help much here. The question is whether usage examples belong to the documentation or not. As we see, this question is debatable. Personally, I'd side clearly with the yes

Re: libglade frustration redux

2007-02-15 Thread Tristan Van Berkom
On Thu, 2007-02-15 at 13:46 -0500, Gerald I. Evenden wrote: [...] I would love to be proved wrong about libglade documentation so please flame me if I am and point out my sins. Even though I am now able to compile/link libglade code I find that I am now stymied by lack of documentation on

Re: libglade frustration

2007-02-14 Thread Tristan Van Berkom
On Wed, 2007-02-14 at 12:56 -0300, Claudio Saavedra wrote: If at least the guy complaining would have given more information about the problems he had, we could have directed him in the right direction, which would've been much more productive than this where do we put examples for the lazy

Re: libglade frustration

2007-02-13 Thread Tristan Van Berkom
On Sun, 2007-02-11 at 16:06 -0700, Michael Torrie wrote: On Sun, 2007-02-11 at 14:58 -0700, Michael Torrie wrote: I've attached one that compiles thusly: gcc -o gladetest gladetest.c `pkg-config --cflags --libs gtk+-2.0 libglade-2.0` The attachment doesn't seem to have made it

Re: libglade frustration

2007-02-13 Thread Tristan Van Berkom
On Tue, 2007-02-13 at 10:28 -0700, Michael Torrie wrote: On Tue, 2007-02-13 at 09:47 -0500, Tristan Van Berkom wrote: The testlibglade program that comes with libglade is about 100 lines of code + some helpfull comments about using the library and about how the library works. I hope

Re: libglade frustration

2007-02-13 Thread Tristan Van Berkom
On Tue, 2007-02-13 at 12:53 -0700, Michael Torrie wrote: [...] One thing that might help here is to have a compiled executable that demonstrates libglade be installed as part of the normal compilation process. This would then be picked up by the packagers and installed as part of the -devel

Re: libglade frustration

2007-02-13 Thread Tristan Van Berkom
On Tue, 2007-02-13 at 14:03 -0700, Michael Torrie wrote: On Tue, 2007-02-13 at 15:12 -0500, Tristan Van Berkom wrote: Somehow I think that downloading the actual tarball from wherever the website of a said software said to go download it from is much more obvious a place then in a -devel

Re: GMutex vs GStaticMutex

2007-02-06 Thread Tristan Van Berkom
On Tue, 2007-02-06 at 00:18 +0100, Tomasz Jankowski wrote: :( I still don't know understand... 1. GStaticMutex are cheaper in use, am I right? They are allocated on the stack and can be initialized at compile time. there is also a little blurb here [1] about some technical details about not

Re: GMutex vs GStaticMutex

2007-02-05 Thread Tristan Van Berkom
On Mon, 2007-02-05 at 19:33 +0100, Tomasz Jankowski wrote: Hi! I'm not sure if I understood difference between these two types of mutexes. Can someone explain it for me more clearly, that it is in GLib's documentation ;) Next thing, I have program, which will run few threads (one thread -

Re: Gtkcanvas!!

2007-02-03 Thread Tristan Van Berkom
On Fri, 2007-02-02 at 10:13 +0100, [EMAIL PROTECTED] wrote: [...] The problem is that when i add my canvas,this different cursor doesn't appear in my window. Does the child widget of the event box have its own window ? Is the event box setup to have its window above or below child widget's

Re: Problem with gtk-doc tool

2007-01-30 Thread Tristan Van Berkom
On Tue, 2007-01-30 at 16:09 +0100, Tomasz Jankowski wrote: [...] Like I can see gtk-doc doesn't recognize C preprocessor directives :( Can someone help me solving this problem? This library is (I mean it will be) available on Linux and win32, so it's very important for me to have my own,

Re: Slow gui response - need to see gtk queue

2007-01-30 Thread Tristan Van Berkom
On Tue, 2007-01-30 at 12:40 -0800, Mark Richardson wrote: I can't figure out why my gui becomes sluggish. I have a main window with a bunch of vboxes and hboxes - in one area, I don't put in a widget - because I load glade.xml files (so you can swap your views). I should say that I have

Re: using GtkPlot from Gtk+Extra without canvas

2007-01-09 Thread Tristan Van Berkom
On Tue, 2007-01-09 at 15:27 +0100, François Galea wrote: hi, [...] The results are a bunch of messages of the form : (plot2:3556): Gtk-CRITICAL **: gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed Hi, those assertions mean that the widget

Re: using GtkPlot from Gtk+Extra without canvas

2007-01-09 Thread Tristan Van Berkom
On Tue, 2007-01-09 at 18:41 +0100, François Galea wrote: Tristan Van Berkom a écrit : On Tue, 2007-01-09 at 15:27 +0100, François Galea wrote: hi, [...] The results are a bunch of messages of the form : (plot2:3556): Gtk-CRITICAL **: gtk_widget_realize: assertion

Re: Gnome widgets...

2006-12-21 Thread Tristan Van Berkom
On Thu, 2006-12-21 at 16:58 +0100, Enrico wrote: Hi all! Where I can find the gnome widgets in Glade 3.* ? If you built Glade on a system that has libgnomeui/libbonoboui then you should have the gnome widget catalog - if you are installing packages then you need to install the gnome widget

Re: GTK - Proper Way to Code Pipes

2006-12-06 Thread Tristan Van Berkom
On Tue, 2006-12-05 at 22:27 +, Christopher Bland wrote: Based on suggestions from this mailing list I've implemented a pipe to pass data from my other processes to the main GTK thread. I noticed that when writing to the pipe there was a long delay before it was handled. I'm assuming

Re: GTK - Proper Way to Code Pipes

2006-12-05 Thread Tristan Van Berkom
On Tue, 2006-12-05 at 21:35 +, Christopher Bland wrote: Based on suggestions from this mailing list I've implemented a pipe to pass data from my other processes to the main GTK thread. I noticed that when writing to the pipe there was a long delay before it was handled. I'm assuming this

Re: Is GTK multi-threaded by default??

2006-11-22 Thread Tristan Van Berkom
Sai Korada wrote: Hi, I'm developing an application using GTK, that talks with device driver. In this process I've introduced a timer callback, where the timer is set to 10, and, the callback function transfers some bytes to memory card. Then it should get the status from the memory card.

Re: Change an image on a button

2006-11-15 Thread Tristan Van Berkom
Guillaume Charhon wrote: Thanks, but how can I ref it or sink it ? Every widget in gtk+ is an object: http://developer.gnome.org/doc/API/2.0/gobject/gobject-The-Base-Object-Type.html#GObject Cheers, -Tristan ___ gtk-app-devel-list

Re: normal gtk code mixed with libglade

2006-11-13 Thread Tristan Van Berkom
Andrea Zagli wrote: Il giorno dom, 12/11/2006 alle 11.20 -0500, Tristan Van Berkom ha scritto: That is normal, I wouldnt expect calling gtk_widget_destroy() to destroy your window, its the combination of calling gtk_widget_destroy() *and returning to the mainloop* that will actually remove

Re: normal gtk code mixed with libglade

2006-11-12 Thread Tristan Van Berkom
Andrea Zagli wrote: is there some known problem about using normal gtk code mixed with libglade??? i explain myself better when i use libglade to show a window and then i use normal gtk code (without liglade) to show another window i receive a strange segfault the first window, showed with

Re: Glade GUI: changing mechanism

2006-11-12 Thread Tristan Van Berkom
Stephen Watson wrote: Olexiy Avramchenko [EMAIL PROTECTED] 31/Oct/2006 12:58:37 On 10/31/06, Johan Kohler [EMAIL PROTECTED] wrote: Isn't it possible to inline the .glade file in the compiled code? Ie. Instead of reading from a text file, it reads from a declared constant. I think

Re: Glade-2's Object field

2006-11-12 Thread Tristan Van Berkom
Jim George wrote: What is the function of Glade-2's Object field in the signals tab in the properties browser? I initially thought if you put in a variable name here, it's used in the user parameter passed to the signal handler. I'm not sure, though, if I need some other magic incantation on

Re: Glade GUI: changing mechanism

2006-11-08 Thread Tristan Van Berkom
[EMAIL PROTECTED] wrote: Sorry for not answering sooner. Lots in my inbox lately (literally ;) No problem, I went out of town for 4 days and came home a whole lot of mail too. [...] OK, let me dream aloud (it'll have far less weight than actually contributing code). What libglade provides

Re: Use GtkWidgets inside of a custom cell renderer

2006-11-07 Thread Tristan Van Berkom
Gabriele Greco wrote: As subject says it's possibile? I've set up a custom cell renderer following the example in the treeview tutorial, now I'd like to use some GTK objects inside it instead of reinvent the wheel to draw lines and texts with GDK. The problem is that what I get in the

Re: Glade GUI: changing mechanism

2006-10-31 Thread Tristan Van Berkom
[EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [...] This thread is getting a little redundant (i.e. yes yes the glade file can be inlined - this was not the issue at hand), we were in the midst of disputing the relevence of inlining your glade file and protecting

Re: GIOChannel

2006-10-25 Thread Tristan Van Berkom
Kevin DeKorte wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all, I'm using the following code fragment ok = g_spawn_async_with_pipes(/tmp, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, std_in, std_out, std_err,

Re: Glade GUI: changing mechanism

2006-10-24 Thread Tristan Van Berkom
[EMAIL PROTECTED] wrote: [...] Another aspect of code generation (the one which sold me for Glade in the first place): typically, my GTK+ programs are a mixture of widgets designed with glade and some generated programmatically (e.g. a table of widgets whose dimensions are known at run time).

Re: Glade GUI: changing mechanism

2006-10-24 Thread Tristan Van Berkom
Philippe Bertin wrote: [...] Well that's what I meant. Maybe in the link above, it could be mentioned that this is an example of how to use libglade. It'd help out people (digging into the subject) to obtain an example more rapidly. Some things are the way they are - and wont improve

Re: Glade GUI: changing mechanism

2006-10-23 Thread Tristan Van Berkom
Philippe Bertin wrote: Hello, Tristan, Tristan Van Berkom wrote: Why would someone want to go from glade file -- generated code -- GUI when you can simply go from glade file -- GUI with much less code-generators generated code to maintain ? You're right in some sense. Still, how

Re: Linux signals and GLIB g_io_channel usage

2006-10-23 Thread Tristan Van Berkom
James Scott Jr wrote: Folks, Hi James, in a phrase - I've done it and it works fine. some places might call for special attention though - for example - if you were to call g_spawn_sync() or g_child_watch(), you may want to have leave SIGCHLD available. Cheers, -Tristan

Re: Glade GUI: changing mechanism

2006-10-21 Thread Tristan Van Berkom
Philippe Bertin wrote: Andrea Zagli wrote: use libglade http://www.jamesh.id.au/software/libglade/ Well, I guess Fernando's intention is to continue to use some glade command-line utility/) add-on to continue to use the generated code in the compiled program ? Why would someone

Re: To which package does glade-catalog.dtd belong ?

2006-10-17 Thread Tristan Van Berkom
Philippe Bertin wrote: Hello all, Sorry to crosspost, but I think this topic can belong to any of the 3 newslists. If this is not good with you, please indicate me which list is most appropriate, please (please do not flame me). /me pulls out torch... glade-devel@lists.ximian.com would

Re: GObject + signals + threads... i have a question

2006-10-11 Thread Tristan Van Berkom
Tomasz Jankowski wrote: Hi! I have a problem and I need to know such thing to solve it: Let say, that we have a multi thread program with two threads: A and B. Now in A thread we declare and create an new object based on GObject and connect FOO signal to it. Later, in B thread we use this

Re: Help with a variable in a .pc file

2006-10-03 Thread Tristan Van Berkom
Daniel Espinosa wrote: A lot of Thanks for your help, I have made the changes sugested and now I found in the Makefile that the route to the directories are as spected '/usr/share/glade3/catalogs' But now please help me! I have configure.in and glade/Makefile.am, the configure process creates

Re: Gettext

2006-10-03 Thread Tristan Van Berkom
Matias Torres wrote: Hi all! Yes, I know it's not a GTK question but i couldn't find an answer to my problem. After building my application (if it helps, it uses gtk), i use gettext for translating it, and, in linux it works just fine. But, talking about windows, well .. it doesn't.. Note:

Re: Adding a child widget to a custom widget

2006-09-06 Thread Tristan Van Berkom
Alexandre wrote: Hi I'm creating a widget, a plotting widget, and I have done a scale widget too. So, I want that the plotting widget has a child, the scale widget, to be it's axis. So, I fill the allocation structure of the scale widget to the position I want, and then I call

Re: gtk_notebook_set_current_page and the switch-page signal

2006-09-06 Thread Tristan Van Berkom
Francesco Montorsi wrote: Hi all, I'd like to know how to change the currently selected page in a GtkNotebook *without* generating a switch-page signal. My switch-page handler in fact performs some code which should be executed only on user-actions, not on selection changes by GTK.

Re: gtk_notebook_set_current_page and the switch-page signal

2006-09-06 Thread Tristan Van Berkom
Francesco Montorsi wrote: [...] My switch-page handler in fact performs some code which should be executed only on user-actions, not on selection changes by GTK. from the docs about switch-page: Emitted when the user or a function changes the current page a.) switch-page maybe isnt

Re: gtk_notebook_set_current_page and the switch-page signal

2006-09-06 Thread Tristan Van Berkom
Eduardo M KALINOWSKI wrote: [...] You can, however, block the signal prior to calling the gtk_notebook_set_current_page function, and unblock it afterwards. Ah yes, I had completely forgot about the slightly more elegant/convenient g_signal_handler_block_by_func() method :)

Re: GtkMenu doesn't recognize it's parents?

2006-08-31 Thread Tristan Van Berkom
Jim George wrote: [...] Am I doing something wrong? Is this a glade bug? I noticed this in programs which use glade code-generation as well as libglade. Or could it be because the popup menu is a top-level window in it's own right? That would make sence (although I'm not confirming that at

Re: Using the combobox

2006-08-28 Thread Tristan Van Berkom
Steven Boyls wrote: I'm using Glade to design a front-end for my application. My question is how to I get the answer from the combobox? The gtk documentation for the functions that I'm trying to use tell me that I can only use these functions if the combobox was created using

Re: g_object_class_install_property

2006-08-24 Thread Tristan Van Berkom
Madhusudan E wrote: [...] All I want to know is, Well the above stated behaviour of GTK is default behavior or Am I going wrong some where. If the property is never explicitly specified, either via g_object_new() or g_object_set() - then the set_property class method will _not_ be called.

Re: g_object_class_install_property

2006-08-23 Thread Tristan Van Berkom
Madhusudan E wrote: Hi, The property wasn't defined on the object, But it started working when I defined the first_property in g_object_new(). I have a query here, Doesn't the gobject_class-set_property function be invoked without sending the first_property parameter in g_object_new(). If

Re: Quick redraw in a plot

2006-08-23 Thread Tristan Van Berkom
Alexandre wrote: Hi, I creating something like a osciloscope, with gtk on Linux. I've created a plotting widget to plot the data collected. So, I have to redraw this plotting widget very quickly to show the data (witch changes very quickly). There is one thread (separeted form

Re: using pipes with g_spawn_command_line_sync

2006-08-23 Thread Tristan Van Berkom
Luka Napotnik wrote: Hello. I am unable to run a command with g_spawn_command_line_sync() that uses pipes. For example echo \bla\ | wc -l gives the exact output as the command insted 1. Other commands without the pipe execute with no problem. What's the problem? I'm afraid that this doesnt

Re: g_object_class_install_property

2006-08-22 Thread Tristan Van Berkom
Madhusudan E wrote: Hi All, I have defined a new widget and I want to install properties. I have defined Gobject_class-set_property Gobject_class-get_property to my local functions. And as well I have installed the property using G_object_class_install_property() But the control

Re: GObject exposure

2006-08-22 Thread Tristan Van Berkom
Philip Kovacs wrote: [...] Maybe I am making more out of this than need be. I have implemented thread- safety in my api's; I require glib=2.8 for thread-safe g_object_[un]ref used internally; all of my gobject properties are construct only/write only; and the user cannot subclass my objects

Re: Sockets in GTK+?

2006-08-20 Thread Tristan Van Berkom
Luka Napotnik wrote: GTK+ is a graphical library for creating UI's. For socket programming you have to use the Unix socket API. Well that is less and less true, glib/gobject is also becomming something like an stl of choice for C programming and is widely used outside the GUI domain.

Re: GObject and threads

2006-08-17 Thread Tristan Van Berkom
Tomasz Jankowski wrote: Hi! I have simple question ;) Are gobject's functions: g_object_set () and g_object_get () threadsafe? No. A GObject can be owned by you or gtk+, you must protect it inside critical sections with mutexes and the like - gobjects that are owned and accessed by gtk+ will

Re: Help Required regarding images over buttons!!

2006-08-10 Thread Tristan Van Berkom
Madhusudan E wrote: When a button is pressed , is it possible to set another image file of format jpeg or gif or from GdkPixbuf? is it possible to support the above feature using GtkState, when the state is active (GTK_STATE_ACTIVE) , it will read from the GtkStyle or by using RC file and

Re: problems with threads in a shared object

2006-08-08 Thread Tristan Van Berkom
Luka Napotnik wrote: I have a program that imports plugins via dlopen and dlsym(). In those plugins I use functions like g_mutex_lock to lock a variable, declared in the main program. But when getting to the mutex function the whole program crashes. The .so library is compiled with: gcc -g

Re: How to copy data between widgets?

2006-08-08 Thread Tristan Van Berkom
Román Gorojovsky wrote: [...] IIRC I did GtkWidget *label; struct my_data *data; /* Initialize label */ data-l = label; and got a Segmentation fault there. But I'll try again I guess my_data is a wild pointer here, you must either allocate it on the heap and ensure

Re: where to find a specific part of the gnome code?

2006-08-08 Thread Tristan Van Berkom
rupert wrote: i think its the gnome-volume-manager, i did a grep in /usr on the message text and found only one file(gnome-volume-manager.mo) that contains the term (Passwort-Phrase). Right now i killed the whole gnome-volume-manager and restarted it, and the password requests pop up, i

Re: help me catch up on GTK gui tools

2006-08-07 Thread Tristan Van Berkom
Brett Stottlemyer wrote: Tristan- Thanks for the heads up, glad to hear it. Will there be an announcement on this mailing list? Not that I've planned, we've been announcing snapshot releases on gnome-announce-list and [EMAIL PROTECTED] we will have an article in this month's journal

Re: where to find a specific part of the gnome code?

2006-08-07 Thread Tristan Van Berkom
rupert wrote: Im at a point with my application where i exactly need the code for the function that runs when you have encrypted disks and start gnome. I mean the password request for the LUKS devices that pops up when gnome is starting on my ubuntu/dapper machine. i looked though the gnome

Re: size of an image on a button

2006-07-27 Thread Tristan Van Berkom
Christopher Backhouse wrote: If I set a button to have an image like this: Hi, You can accomplish what you want using a gtkrc file and the pixbuf engine, this way you can set a graphics file for any particular widget by name and it will scale automatically. Cheers,

Re: dialogue and threads

2006-07-26 Thread Tristan Van Berkom
Yves Willems wrote: Hi all, I have a multi threaded GTK app and want to show an error dialogue for an error that occurred on a thread different then the main thread. When showing the dialogue on this thread, the 'waiting for OK' blocks the main thread and therefore freezes my GUI.

Re: How to switch focus to another UI ?

2006-07-26 Thread Tristan Van Berkom
[EMAIL PROTECTED] wrote: Hi all, [...] This should do it: http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#gtk-widget-grab-focus I may be wrong... maybe you have to also ensure that the toplevel window also has focus... Cheers, -Tristan

Re: How to replace a image ?

2006-07-26 Thread Tristan Van Berkom
Seongsu Lee wrote: Hello, Follow is the code to show image A. image = create_pixmap(win_background, FILENAME); gtk_widget_show(image); gtk_box_pack_start(GTK_BOX(vbox), image, TRUE, TRUE, 0); I added image widget with image A in my app. I want to replace the image A to a image

Re: how do I plug this glib main loop memory leak?

2006-07-25 Thread Tristan Van Berkom
Sebastian Kuzminsky wrote: [...] The way I read this, g_main_loop_new() is allocating memory and not freeing it, even though I quit the loop and unref it. Clue in a helpless noob, what's going on here? The way I'm reading that trace, the g_main_loop_new() function when called the first

Re: glade begginer - callbacks.c

2006-07-19 Thread Tristan Van Berkom
nuser wrote: hi, my application is writen in c, and I use a file for the functions, another one to hold the several structs are being used (using typedef), and the functions prots. another application uses these methods to manipulate data. so in the other source.c, in the main()

Re: why button is hidden behind drawing area(win32)

2006-07-12 Thread Tristan Van Berkom
Atanas Atanasov wrote: In this case what solution can be used to force the display order? Should one check the code of the respective functions and make a local copy of the code, modifying it as appropriate? I am afraid this will change too quickly and my code might not be compatible with

Re: float params of a gobject

2006-07-10 Thread Tristan Van Berkom
Daniel Alonso wrote: [...] But default value 0.0 is equal G_MINFLOAT and lesser than G_MAXFLOAT, isn't it? Not sure here, but could it be something really dumb like... should you be using something more violent like: 0.0F or ((gfloat) 0 + 0.0) ? Just a guess... Cheers,

Re: GtkFixed child control resizing

2006-07-05 Thread Tristan Van Berkom
Atanas Atanasov wrote: I have a GtkWindow with a single GtkFixedChild. Then all the rest of the interface goes into the GtkFixed with exact positions which I can set through gtk_fixed_put or gtk_fixed_move. Suppose I have a GtkLabel child. I would like to be able to set its size and apply a

Re: GtkFixed child control resizing

2006-07-05 Thread Tristan Van Berkom
Atanas Atanasov wrote: [...] but what I see is /--\ | | | line 1 is longer | | line2| | | \--/ Have you set the xalign property to 0.0 ? Cheers,

Re: slider_width - adjusting scrollbar sizes

2006-07-04 Thread Tristan Van Berkom
EMAN wrote: Hi all: Excuse me if this has been answered recently but I am a new subscriber to the list but did search the archives for the last 2 years. You'll want to use the slider-width style property on GtkRange:

Re: slider_width - adjusting scrollbar sizes

2006-07-04 Thread Tristan Van Berkom
EMAN wrote: Oh yea forgot one thing. The slider-width style propery of GtkRange is a read-only property in version 1.2 and unfortunately does not exist at all in 2.6 (though the documentation whould suggest otherwise). I believe the trick I played with accessing the GtkRangeClass in 1.2

Re: writing my own widget or use gtk provided widget?

2006-06-28 Thread Tristan Van Berkom
Kathleen Yang wrote: Hi experts, My group met a problem when writing our application. We'll implement 5 windows in the application and each window will contain some normal gtk widgets such as check buttons, textview, buttons, ... Now, we have two solutions: 1. Implementing each window as a new

Re: filechooserbutton and saving

2006-06-26 Thread Tristan Van Berkom
Karl H. Beckers wrote: [...] (xvidcap:10389): Gtk-WARNING **: gtk_file_chooser_button_set_property: Choosers of type `GtkFileChooserButton' do not support `GTK_FILE_CHOOSER_ACTION_SAVE'. *grmbrl* what do you folks do about this? Interesting warning, is it possible that the filechooser

Re: Interdependent adjustments conundrum

2006-06-20 Thread Tristan Van Berkom
Daniel Haude wrote: [...] I looked at g_signal_handler_block(); I do have the signal IDs (using some ugly external global variables) but I can't figure out what the instance argument is supposed to mean. But even if I could I wouldn't know how to use it because where would I put it?

Re: silly problems with program directory

2006-06-08 Thread Tristan Van Berkom
Yiannis wrote: On 08/06/06, David Neèas (Yeti) [EMAIL PROTECTED] wrote: On Thu, Jun 08, 2006 at 04:47:13PM +0100, Yiannis wrote: I am having a slight problem with the program directory. What I mean is that when I run a program from the directory that all the files are lying it is

Re: Deleting random number of buttons...

2006-06-07 Thread Tristan Van Berkom
3saul wrote: Create code: GtkWidget **b_buttons; b_buttons = g_new(GtkWidget*, x); for (i = 0; i x i != x; i++) { b_buttons[i] = gtk_button_new(); gtk_widget_show( b_buttons[i] ); gtk_table_attach (GTK_TABLE (table6), b_buttons[i], 0,

Re: using gtk preffix, it's ok??

2006-06-06 Thread Tristan Van Berkom
Alexandre wrote: Hi I'm in a project, to make a library with scientific widgets for gtk, and I want to know if it's ok to use the gtk preffix in the functions and objects. Or we have to use another preffix, since it's not official of gtk?? It makes no sence for you to use the gtk

<    1   2   3   4   5   >