Re: multi line cell edition

2011-02-03 Thread Tristan Van Berkom
On Thu, Feb 3, 2011 at 8:54 PM, Nicolas Soubeiran nicolas.soubei...@gmail.com wrote: Hi all, I need to edit a multi-line cell in a treeview. GtkCellRendererText can display a multi-line text, I need to be able to edit it and/or let the user set a multi line value in the cell. I look at

Re: cannot launch project with glad file

2011-01-13 Thread Tristan Van Berkom
a.) where did you install the .glade file b.) what path are you giving to the gtk_builder_add_from_file() api ? If you've answered those 2 questions, you've surely already solved the problem. Cheers, -Tristan On Fri, Jan 14, 2011 at 5:11 AM, craigbakalian craigbakal...@verizon.net wrote:

Re: Question about GtkCellAreaBox

2010-12-27 Thread Tristan Van Berkom
On Mon, Dec 27, 2010 at 9:30 PM, Tomasz Jankowski tomc...@gmail.com wrote: Hello! So far (GTK+ 2.91.7) we can easily pack renderers vertically or horizontally in single GtkTreeViewColumn using GtkCellAreaBox. I want to achieve mixed structure of renderers, something like this (this is single

Re: GtkBuilder issue?

2010-09-29 Thread Tristan Van Berkom
On Wed, Sep 29, 2010 at 4:10 AM, Lance Dillon riffraff...@yahoo.com wrote: I'm trying to add gtkbuilder support to pike (pike.roxen.com). In loading a glade3 file, it says Invalid Object 'blah', unless I create an instance of the object first.  I narrowed it down to (in gtkbuilder.c): Unless

Re: GtkTextView background image without tiling.

2010-07-30 Thread Tristan Van Berkom
On Fri, Jul 30, 2010 at 5:35 AM, Kuang-Chun Cheng kcch...@linuxdaq-labs.com wrote: Hi, I can use gdk_window_set_back_pixmap() to set the background image of GtkTextView. But the image is tiling. My question is ... Is it possible to use background image without tiling for Gtk's widget ?

Re: Treeview, different Cell-render per row

2010-07-10 Thread Tristan Van Berkom
On Sat, Jul 10, 2010 at 2:19 AM, Arne Pagel a...@pagelnet.de wrote: Tadej Borovšak schrieb: Hi. My other Idea was to make a new column for the GtkCellRendererToggle, and just show it when needed. Is it possible to hide a one of the renderer? This is how I would do this. Just add one

Re: word wrap in liststore column

2010-06-26 Thread Tristan Van Berkom
On Fri, Jun 25, 2010 at 8:44 PM, Mick bare...@tpg.com.au wrote: I'm stuck again. I wish to set word-wrap for a single column in a treeview liststore, I've found the options I need to set but can't for the life of me find an example of how to do it. I think the catch is that you need to set

Re: How to make GtkLabel fills like GtkTextView?

2010-06-19 Thread Tristan Van Berkom
On Sat, Jun 19, 2010 at 3:58 AM, Ardhan Madras aj...@knac.com wrote: Can anyone tell me what is the case to use 'GtkTextView' instead of 'GtkLabel' to display a text with several sentences( 100 words) in not editable way? Maybe for `beauty' looks, the author want the text wrapped as it's

Re: GtkTextView and glade 3

2010-06-08 Thread Tristan Van Berkom
On Tue, Jun 8, 2010 at 1:43 AM, Mick bare...@tpg.com.au wrote: On Mon, 07 Jun 2010 22:12:57 -0700 Steve Harrington steven.harring...@verizon.net wrote: On 06/07/2010 09:36 PM, Mick wrote: I've spent the last month struggling with glade to layout the interface for my app, especially

Re: Top down layout

2010-06-08 Thread Tristan Van Berkom
On Tue, Jun 8, 2010 at 10:36 PM, Matthew Allen l...@sydneyband.com.au wrote: This sort of behaviour might not be possible with GTK. But at least I thought I'd ask. Actually whats the first signal generated when the user attempts to resize the GtkWindow? I should hook that and stop it get

Re: Multi-platform dbus (was: Ige-mac-integration: New version with Cocoa interface available)

2010-05-20 Thread Tristan Van Berkom
On Thu, May 20, 2010 at 3:56 PM, Shawn Bakhtiar shashan...@hotmail.com wrote: Sorry for my naivete But I have been building some of our application tool sets in native Cocoa (the printing industry is exclusively MAC, with little room for anything else). The question being, in the

Re: Callbacks when glade file is loaded using a dynamic library

2010-04-23 Thread Tristan Van Berkom
On Fri, Apr 23, 2010 at 4:40 AM, dfg dfg abx...@msn.com wrote: Hi Tristan, I am not sure if the symbols need to be visible in myapp. Currently, myapp attaches a glade file to create its interface and uses dlopen to open the .so dynamic library. The .so library loads its own GTK Builder which

Re: Callbacks when glade file is loaded using a dynamic library

2010-04-22 Thread Tristan Van Berkom
On Thu, Apr 22, 2010 at 7:21 PM, dfg dfg abx...@msn.com wrote: Hi everyone, Currently, I have built my main application using glade. This file is then loaded by a C application. I then created another interface using Glade. When my main application loads, it loads a .so library which

Re: Callbacks when glade file is loaded using a dynamic library

2010-04-22 Thread Tristan Van Berkom
If you have symbols that need to be visible in 'myapp', they need to be exported to in order to by found by a g_module_lookup(); did you also export the symbols of you app ? Cheers, -Tristan On Thu, Apr 22, 2010 at 9:53 PM, dfg dfg abx...@msn.com wrote: Thank you Tristan. I actually

Re: Glade3: Setting TreeModel in GtkComboBox

2010-03-12 Thread Tristan Van Berkom
On Sat, Mar 13, 2010 at 1:10 AM, Ardhan Madras aj...@knac.com wrote: From: Tristan Van Berkom t...@gnome.org To: aj...@knac.com Cc: gtk-app-devel-list@gnome.org Subject: Re: Glade3: Setting TreeModel in GtkComboBox Date: Tue, 9 Mar 2010 10:13:59 -0500 As the combo box implements

Re: Glade3: Setting TreeModel in GtkComboBox

2010-03-09 Thread Tristan Van Berkom
On Tue, Mar 9, 2010 at 7:07 AM, Ardhan Madras aj...@knac.com wrote: Im using Glade 3.6.7 and GTK+ 2.18.7, build UI with Glade and save as GtkBuilder format. I don't understand how GtkBuilder implements GtkComboBox's TreeModel, in Glade i already add it's model, create a column and append some

Re: Array of arrays

2010-02-27 Thread Tristan Van Berkom
On Sat, Feb 27, 2010 at 9:50 PM, Brian Lavender br...@brie.com wrote: I guess the list stripped the attachments. The code is included in this message. Hi, First of all it would be helpful if you told us what is the problem with your code, off the bat I could tell you that the way you pass

Re: Getting a Widget Choice

2010-02-20 Thread Tristan Van Berkom
You should always prefer using either gtk_builder_get_object(), or also using trustable API's like gtk_button_get_image_widget() for instance. (not sure if thats an existing api, but you get the idea). I.e. the composition of opaque composite widgets from GTK+ can change, possibly breaking unwary

Re: specify which child widget to be on top in GtkFixed?!

2010-02-09 Thread Tristan Van Berkom
Widgets dont overlap in GTK+, instead one widget is packed into another widget and sits along side other widgets inside its container - who packs them in a way that they will not overlap. FYI, GtkFixed is a special case widget you dont want to be using if your application has any resize

Re: Problem swapping GtkScrolledWindow contents on the fly

2009-12-24 Thread Tristan Van Berkom
From the assertions it *looks* like glade_xml_get_widget() is returning NULL for mainvbox. Cheers, -Tristan On Thu, Dec 24, 2009 at 11:29 AM, Andrew Wood ajw...@theiet.org wrote: The following function is called to display a vbox, which is read from a glade file, in a scrollview. If

Re: Problem swapping GtkScrolledWindow contents on the fly

2009-12-24 Thread Tristan Van Berkom
On Thu, Dec 24, 2009 at 6:40 PM, Andrew Wood ajw...@theiet.org wrote: But that bit of code only runs the first time and the first time it works. On 24 Dec 2009, at 19:09, Tristan Van Berkom wrote: From the assertions it *looks* like glade_xml_get_widget() is returning NULL for mainvbox

Re: Problem swapping GtkScrolledWindow contents on the fly

2009-12-24 Thread Tristan Van Berkom
you dont have a reference. Cheers, -Tristan On Thu, Dec 24, 2009 at 7:06 PM, Tristan Van Berkom t...@gnome.org wrote: On Thu, Dec 24, 2009 at 6:40 PM, Andrew Wood ajw...@theiet.org wrote: But that bit of code only runs the first time and the first time it works. On 24 Dec 2009

Re: GtkScrollView contents its GtkViewport contents

2009-12-22 Thread Tristan Van Berkom
On Tue, Dec 22, 2009 at 1:27 PM, Andrew Wood ajw...@theiet.org wrote: Am I right in thinking a GtkScrolledWindow can only have 1 child (a GtkViewPort) and that the GtkViewPort can only have one child also? If this is correct.  Having added a widget a GtkVBox to a GtkScrolledWindow using:

Re: Creating an aggregating GtkContainer

2009-11-18 Thread Tristan Van Berkom
On Wed, Nov 18, 2009 at 5:40 PM, Per Hermansson hermansson@bredband.net wrote: Brian J. Tarricone wrote: On Wed, Nov 18, 2009 at 10:35, Per Hermansson hermansson@bredband.net wrote: My question is if someone knows a good way to implement this. I've tested with estimating the

Re: Creating an aggregating GtkContainer

2009-11-18 Thread Tristan Van Berkom
On Wed, Nov 18, 2009 at 7:22 PM, Per Hermansson hermansson@bredband.net wrote: Tristan Van Berkom wrote: On Wed, Nov 18, 2009 at 5:40 PM, Per Hermansson hermansson@bredband.net wrote: Thanks, this is actually an requirement for me (which I forgot to mention) the widgets

Re: using doxygen to document gobject/gtk classes?

2009-11-16 Thread Tristan Van Berkom
On Tue, Nov 17, 2009 at 12:22 AM, Brian J. Tarricone bj...@cornell.edu wrote: Hi all, I'm in a situation where I'd like to use doxygen (and not gtk-doc) to document some GObject-derived classes.  Does anyone have any experience with this and knows of any tricks to use to make the output more

Re: why do constructors return GtkWidget?

2009-09-10 Thread Tristan Van Berkom
On Thu, Sep 10, 2009 at 2:12 PM, Thomas Stover tho...@wsinnovations.com wrote: [...] Indeed. Not building interfaces manually may save time now and then, but it hinders your understanding of what is happening. For instance when you want to dynamically make interface changes at run time your

Re: why do constructors return GtkWidget?

2009-09-10 Thread Tristan Van Berkom
On Thu, Sep 10, 2009 at 3:24 PM, Thomas Stover tho...@wsinnovations.com wrote: [...] Well that's pretty much how I see it, but creating new derived widgets is not always the same thing as dynamic interface manipulation. The issue that grabbed my attention more was the notion of always using

Re: why do constructors return GtkWidget?

2009-09-09 Thread Tristan Van Berkom
On Wed, Sep 9, 2009 at 2:53 AM, Emmanuel Touzeryemmanuel.touz...@free.fr wrote: Hi, [...] You know what I'm thinking... I think that this is from times where people used to build GUIs in the code... When they were writing all the container embedding and all, in C, building their dialogs. At

Re: why do constructors return GtkWidget?

2009-09-08 Thread Tristan Van Berkom
On Tue, Sep 8, 2009 at 12:54 PM, Emmanuel Touzeryemmanuel.touz...@free.fr wrote: Hi, Whatever type is returned, you'll have to do lots of casts, so whatever convention is used, there's no avoiding that. And returning GtkWidget* is just the current convention. I personally would prefer

Re: csv (comma separated value) file

2009-08-03 Thread Tristan Van Berkom
On Mon, Aug 3, 2009 at 12:03 PM, Andrea Zagliaza...@inwind.it wrote: i didn't find nothing about to manage (read/write) csv files with glib do you know about something that i didn't find? Currently its pretty easy using g_file_get_contents()/g_strsplit() if you can have it all in ram, or

Re: csv (comma separated value) file

2009-08-03 Thread Tristan Van Berkom
On Mon, Aug 3, 2009 at 1:21 PM, Liam R E Quinl...@holoweb.net wrote: On Mon, 2009-08-03 at 12:45 -0400, Tristan Van Berkom wrote: [...] Currently its pretty easy using g_file_get_contents()/g_strsplit() CSV files are not just comma separated, and in some cases can have column headers

Re: Is there any way to match a key event against key binding rules for GtkTextView class without creating a GtkTextView object?

2009-07-27 Thread Tristan Van Berkom
On Sun, Jul 26, 2009 at 11:21 PM, Zhe Sujames...@gmail.com wrote: Can anybody give me some suggestions about this issue? Im not sure exactly how the keybindings are defined in the theme, but my guess is that you need to derive your custom object from GtkTextView if you want to inherit the

Re: Copying widgets

2009-07-12 Thread Tristan Van Berkom
On Sun, Jul 12, 2009 at 3:27 PM, Jim Georgejimgeo...@gmail.com wrote: Hi all, I'm writing a program that, like gimp, has a control window, from which users can open one or more viewer windows that present different aspects of a data set (it's a weather radar display program). The sub-windows

Re: GtkBuilder and GtkHScale

2009-07-02 Thread Tristan Van Berkom
On Thu, Jul 2, 2009 at 1:54 PM, Tadej Borovšaktadeb...@gmail.com wrote: Hello. hi all, i'm trying to develope a small application with the help of glade. Is it a normal behaviour that when i set the upper limit of a GtkHscale, i need tu use a value bigger than the needed one by 10 units?

Re: What is Gtk builder?

2009-06-22 Thread Tristan Van Berkom
On Mon, Jun 22, 2009 at 6:22 PM, dhkdhk...@optonline.net wrote: I hate to ask what everyone seems to know, but what is gtk builder?  Is it part of Glade 3.4.5?  I don't see any gtk builder packages or libraries in the Gentoo portage tree.  Also does this mean all my Glade programs are

Re: Call to gtk_main() crashes

2009-04-29 Thread Tristan Van Berkom
On Wednesday, April 29, 2009, RNG rga...@gmail.com wrote: Hi, following your suggestion, I've added a call to gtk_init() at the beginning of main() but the program still crashes. The end of the stack trace now displays a different memory address but otherwise it's essentially the same All I

Re: Single letter accelerator and GtkEntry

2009-04-28 Thread Tristan Van Berkom
On Tue, Apr 28, 2009 at 10:34 AM, Olivier Guilyardi m...@xung.org wrote: Hi, I'm working on an audio app. In my menu I have single letters accelerators such as Z or space, which are 100% needed for consistency with other audio applications around. These accelerators works. However, it

Re: Porting UIs to GtkBuilder

2009-04-15 Thread Tristan Van Berkom
On Wed, Apr 15, 2009 at 9:59 AM, Zeeshan Ali (Khattak) zee...@gmail.com wrote: Hi, [...] Errr, try converting with Glade 3.6 instead of the conversion script ?   I just tried glade3 from trunk[1]. One of the three UIs just work fine now but two others don't. One of them hits a fatal on

Re: How to send user_data into callback function by glade only?

2009-04-15 Thread Tristan Van Berkom
On Tue, Apr 14, 2009 at 10:46 AM, donglongchao donglongc...@163.com wrote: [...] And I want to show the value of myspinbutton by pass its point to callback function.But every time I click the button there is no response.Just left (gtk_toggle_button_get_active): assertion `GTK_IS_TOGGLE_BUTTON

Re: Porting UIs to GtkBuilder

2009-04-14 Thread Tristan Van Berkom
On Tue, Apr 14, 2009 at 4:50 PM, Zeeshan Ali (Khattak) zee...@gmail.com wrote: Hi,   Reading through planet gnome and related mailing-lists recently, I got the impression that this would be a good time to port my UIs from libglade usage to GtkBuilder. So following the guidelines on this page:

Re: locking widgit sizes

2009-04-08 Thread Tristan Van Berkom
On Mon, Apr 6, 2009 at 12:23 AM, mick mickh...@bigpond.net.au wrote: I'm using glade 2.12 to build an interface for a GTK based chat client and having trouble locking the size of buttons, text entry, etc. widgits. I've tried setting the height of the container, the height of the text entry

Re: Speeding Up libglade

2009-04-07 Thread Tristan Van Berkom
On Tue, Apr 7, 2009 at 1:07 AM, arne arne.pa...@gmx.de wrote: Hello, I am not sure if this solution will save time, If I understood everything right, the xml-parser of libglade must parse in both cases. but isn't it possible to store the output of glade_xml_new() to a file and just load it

Re: is this good code?

2009-03-18 Thread Tristan Van Berkom
On Wed, Mar 18, 2009 at 8:25 AM, Dr. Michael J. Chudobiak m...@avtechpulse.com wrote: I've never fully understood the timing issues with signals and callbacks. Is this good or evil (vala) code? public bool ensureConnected () {    /* try to connect, if not already connected */    if

Re: ellipsize expander label

2009-03-01 Thread Tristan Van Berkom
On Sun, Mar 1, 2009 at 9:48 AM, Vladimir Nadvornik nadvor...@suse.cz wrote: Hi, Is it possible to ellipsize expander label? The simple approach does not work for me. expander = gtk_expander_new(NULL); label = gtk_label_new(some longer text); gtk_label_set_ellipsize(GTK_LABEL(label),

Re: Adding menu items dynamically

2009-02-18 Thread Tristan Van Berkom
On Wed, Feb 18, 2009 at 9:43 AM, John Coppens j...@jcoppens.com wrote: Hello people. I'm still getting my feet wet with Glade3... I defined a menu, which works fine, but now I want to add items to one of the submenus by program, and I'm stuck. I did find several other people with similar

Re: Adding menu items dynamically

2009-02-18 Thread Tristan Van Berkom
On Wed, Feb 18, 2009 at 1:20 PM, John Coppens j...@jcoppens.com wrote: [...] But, the '*' bug reappeared! Saving as GtkBuilder doesn't save '*' as invisible character for a GtkEntry. (It finally did when saving as libglade, http://bugzilla.gnome.org/show_bug.cgi?id=572271) That is very

Re: many buttons, one handler with gtkbuilder

2009-01-21 Thread Tristan Van Berkom
On Wed, Jan 21, 2009 at 1:19 PM, Peter F. Patel-Schneider p...@verizon.net wrote: [...] Actually a more general solution would be to allow glade/gtkbuilder to add properties to widget classes. I don't know whether this would fly. Glade lets you add properties and save them to the glade file,

Re: many buttons, one handler with gtkbuilder

2009-01-20 Thread Tristan Van Berkom
On Tue, Jan 20, 2009 at 7:27 AM, Peter F. Patel-Schneider p...@verizon.net wrote: [...] As I expected, I guess, but it sure would be nice to be able to easily build objects or handlers that have extra information in them in the form of integers or strings. Just being able to initialize the

Re: Suggestions about g_signal_connect_data and/or g_object_set_data_full

2009-01-03 Thread Tristan Van Berkom
On Fri, Jan 2, 2009 at 2:35 PM, Rodrigo Miguel rodrm...@gmail.com wrote: Hello all, I've the code below, so here are just a couple of questions: 1) I'm curious, if I close the app by clicking the button that calls gtk_main_quit, instead of forceing the window to be destroyed, it doesn't

Re: Glade and Gtk 2.16.x

2009-01-02 Thread Tristan Van Berkom
On Fri, Jan 2, 2009 at 2:47 PM, Rodrigo Miguel rodrm...@gmail.com wrote: Hi Tadej, Sorry, I think I wasn't clear in my question. In fact I'm already using the glade both windows and linux. So I'm asking, if it will be delivered with Gtk, not as separate project and not dependent of LibGlade.

Re: Menu bar items without icon indent

2008-12-24 Thread Tristan Van Berkom
On Wed, Dec 24, 2008 at 2:18 PM, Peter Clifton pc...@cam.ac.uk wrote: Hi, I'm wanting to make a menu-bar item without any offset allocated due to toggle-size (space left to line up all GtkMenuItems icons / accelerators). What I want to implement is something which looks like the screen-shot

Re: Building custom gtk+ lib then program doesn't follow system's default theme.

2008-12-12 Thread Tristan Van Berkom
On Thu, Dec 11, 2008 at 12:07 AM, Keedi Kim ke...@perl.kr wrote: Hi guys, I just built gtk+-2.14.5 since 2.14.4 in Ubuntu 8.10 has a GtkCellRenderCombo bug (http://bugzilla.gnome.org/show_bug.cgi?id=558323) Anyway I got brand-new stable release of gtk+. and build my program again to

Re: Dynamically adding a wiget to a container created by glade

2008-12-10 Thread Tristan Van Berkom
You can add your widget to glade instead of playing fancy container tricks. Here is an example where you add a completely virtual widget class: http://www.gnome.org/~tvb/testcatalog.xml You'll find the full documentation here: http://glade.gnome.org/docs These docs apply for dev glade

Re: Building custom gtk+ lib then program doesn't follow system's default theme.

2008-12-10 Thread Tristan Van Berkom
On Thu, Dec 11, 2008 at 12:22 AM, Tristan Van Berkom [EMAIL PROTECTED] wrote: On Thu, Dec 11, 2008 at 12:07 AM, Keedi Kim [EMAIL PROTECTED] wrote: Hi guys, I just built gtk+-2.14.5 since 2.14.4 in Ubuntu 8.10 has a GtkCellRenderCombo bug (http://bugzilla.gnome.org/show_bug.cgi?id=558323

Re: Is it possible having different GtkAdjustment values in GtkTreeView

2008-12-08 Thread Tristan Van Berkom
On Mon, Dec 8, 2008 at 6:02 AM, Keedi Kim [EMAIL PROTECTED] wrote: Hi! :-) I have some question about GtkTreeView and GtkCellRenderer. Is it possible to have different GtkAdjustment values for each column(renderer?) in GtkTreeView? Is there any reason you cant just store the adjustment in

Re: Emitting events to a non-visible widget

2008-12-03 Thread Tristan Van Berkom
On Wed, Dec 3, 2008 at 2:38 PM, Zan Dobersek [EMAIL PROTECTED] wrote: Is there any way to emit events to a non-visible GtkWidget? By non-visible, I'm thinking of a GtkWidget that never gets shown, i.e. gtk_widget_show_all or similar never gets called on this widget. Just to clarify on the

Re: Glade signal connect data and full

2008-11-14 Thread Tristan Van Berkom
On Tue, Nov 11, 2008 at 6:32 AM, dhk [EMAIL PROTECTED] wrote: [...] Thanks, but this is a lot like the glade source. It doesn't explain the variables. I need to know what the parameters are and where they come from. I think the handler_name the one in the glade xml file and the

Re: Glade signal connect data and full

2008-11-11 Thread Tristan Van Berkom
Gah, my mail always misses the list ;-) On Tue, Nov 11, 2008 at 12:22 PM, Tristan Van Berkom [EMAIL PROTECTED] wrote: On Tue, Nov 11, 2008 at 6:32 AM, dhk [EMAIL PROTECTED] wrote: [...] Thanks, but this is a lot like the glade source. It doesn't explain the variables. I need to know what

Re: Layout Composite Widget Components Using Glade-3? / Pluggable widgets replacement for Glade custom widget?

2008-10-21 Thread Tristan Van Berkom
On Tue, Oct 21, 2008 at 2:56 PM, Daniel Yek [EMAIL PROTECTED] wrote: [...] Hi Tristan, No, I think I got the pluggable term from the following Wikipedia page. Yeah, the term is probably too confusing to use besides serving as a general explanation in the article. ok for the sake of this

Re: Layout Composite Widget Components Using Glade-3? / See Glade Only as Prototyping Tool?

2008-10-21 Thread Tristan Van Berkom
On Tue, Oct 21, 2008 at 7:25 PM, Daniel Yek [EMAIL PROTECTED] wrote: [...] That (custom composite widget) is one approach I know of, but that doesn't allow me to manipulate the composite widget's children in Glade easily without more work. That is, if I stick to the standard GtkVBox, I can

Re: Glade (Re: What widgets in TES Construction Set?)

2008-10-20 Thread Tristan Van Berkom
On Mon, Oct 20, 2008 at 1:50 PM, Juhana Sadeharju [EMAIL PROTECTED] wrote: About Glade. I tried to create something simple (which I don't remember now) it didn't succeed. The menubar was simple, but this equally simple thing was too hard. I will check it again and post to glade lists someday.

Re: What widgets in TES Construction Set?

2008-10-19 Thread Tristan Van Berkom
On Sat, Oct 18, 2008 at 1:26 PM, Juhana Sadeharju [EMAIL PROTECTED] wrote: [...] I tried Glade but soon found that plain GTK is more for my taste. In Glade, good is that all the widget properties are listed, no guess work. Bad was that I could not do what I wanted. Hi, before you give up on

Re: Layout Composite Widget Components Using Glade-3? / Pluggable widgets replacement for Glade custom widget?

2008-10-17 Thread Tristan Van Berkom
On Thu, Oct 16, 2008 at 10:01 PM, Daniel Yek [EMAIL PROTECTED] wrote: Hi, I have been wondering, if I were to create a (custom) composite widget to contain several standard GTK+ widgets from within a larger Glade project, is there a way I can keep both the application layout and the composite

Re: Layout Composite Widget Components Using Glade-3? / Pluggable widgets replacement for Glade custom widget?

2008-10-17 Thread Tristan Van Berkom
On Fri, Oct 17, 2008 at 2:10 AM, Daniel Yek [EMAIL PROTECTED] wrote: [...] This is done by installing custom widgets catalog into catalog directory, installing custom plugin libraries, loading optional/custom plugin libraries, installing and loading glade-3 custom widget icons, right? If so,

Re: What strategy to use to deal with Glade-3's problem in removing pixbuf directory paths in .glade file!

2008-10-09 Thread Tristan Van Berkom
On Thu, Oct 9, 2008 at 2:40 PM, Daniel Yek [EMAIL PROTECTED] wrote: Hi Tristan, Thanks for responding. My responses inlined below... [...] or in the specified pixbuf directory (you can add a search path with the libglade api). o gdk-pixbuf's gdk_pixbuf_new_from_file() requires absolute or

Re: shared memory queue

2008-10-07 Thread Tristan Van Berkom
2008/10/6 Luka Napotnik [EMAIL PROTECTED]: Hello. I have a problem that I need an GAsyncQueue shared among multiple processes. If I allocate a structure with shared memory and then allocate the GAsyncQueue with g_async_queue_new() to a structure member, is the queue shared or not? And if

Re: What strategy to use to deal with Glade-3's problem in removing pixbuf directory paths in .glade file!

2008-10-07 Thread Tristan Van Berkom
On Mon, Oct 6, 2008 at 2:01 PM, Daniel Yek [EMAIL PROTECTED] wrote: Hi, I'm trying to find a way to deal with the problem with Glade-3 removing absolute or relative path from pixbuf property. Hi, since we are in the middle of adding builder support, this would be a great time to file a bug

Re: shared memory queue

2008-10-06 Thread Tristan Van Berkom
Oops first post missed the list... 2008/10/6 Luka Napotnik [EMAIL PROTECTED]: Hello. I have a problem that I need an GAsyncQueue shared among multiple processes. If I allocate a structure with shared memory and then allocate the GAsyncQueue with g_async_queue_new() to a structure member, is

Re: Private data problems

2008-09-15 Thread Tristan Van Berkom
Hi Liam, It seems that the switch-page is a historical problem, its one of the oldest signals on the widget and fixing that issue would only be an api break in gtk+, although it might make sense to at least make sure there is a bug report active. I definitely suggest you go make sure there is

Re: How to create unique widget when reusing widget id's from a GladeXML object.

2008-08-12 Thread Tristan Van Berkom
oops this missed the list... On Tue, Aug 12, 2008 at 6:58 AM, Olivier Guilyardi [EMAIL PROTECTED] wrote: [...] About performance, from the liblglade manual : the XML parse tree is cached to speed up creating another GladeXML object for the same file. Yes, and for the same reasons outlined

Re: How to create unique widget when reusing widget id's from a GladeXML object.

2008-08-12 Thread Tristan Van Berkom
On Tue, Aug 12, 2008 at 6:58 AM, Olivier Guilyardi [EMAIL PROTECTED] wrote: [...] About performance, from the liblglade manual : the XML parse tree is cached to speed up creating another GladeXML object for the same file. Yes, and for the same reasons outlined above its a good idea to unref

Re: How to create unique widget when reusing widget id's from a GladeXML object.

2008-08-12 Thread Tristan Van Berkom
On Tue, Aug 12, 2008 at 6:58 AM, Olivier Guilyardi [EMAIL PROTECTED] wrote: [...] About performance, from the liblglade manual : the XML parse tree is cached to speed up creating another GladeXML object for the same file. Yes, and for the same reasons outlined above its a good idea to unref

Re: How to create unique widget when reusing widget id's from a GladeXML object.

2008-08-11 Thread Tristan Van Berkom
If you are using one glade file for the tab contents and parsing it again for each tab, then you get widgets in your runtime interface that have the same name, thats not an issue for gtk+ - but, as you named them yourself, its up to you to identify them some other way. Im not sure I understood

Re: Finding a widget in a Glade interface

2008-07-30 Thread Tristan Van Berkom
for future reference, this could easily have been pulled out of the docs/header files: glade_xml_get_widget() type libglade and feel lucky its right there. -Tristan note, remember to unref your GladeXML object early (unlike shown in said example). On Wed, Jul 30, 2008 at 7:10 AM, dhk [EMAIL

Re: Finding a widget in a Glade interface

2008-07-30 Thread Tristan Van Berkom
On Wed, Jul 30, 2008 at 3:40 PM, Tristan Van Berkom [EMAIL PROTECTED] wrote: for future reference, this could easily have been pulled out of the docs/header files: glade_xml_get_widget() type libglade and feel lucky its right there. oops, I obviously meant in google here

Re: glade in win xp

2008-07-28 Thread Tristan Van Berkom
The win32 builds are maintained here http://sourceforge.net/projects/gladewin32/ its just a zip file that you have to unzip into your prefix of choice in your MinGW/MSYS environment. I wonder if static builds are a possibility, for users who dont need a dev environment but only want to

Re: g_object_get_data changed data association

2008-07-25 Thread Tristan Van Berkom
Hi, Check that your list store is properly refcounted, is there any reason why the list store may have been destroyed previous to this call ? Cheers, -Tristan On Fri, Jul 25, 2008 at 10:41 AM, YU WU [EMAIL PROTECTED] wrote: dear sir or madam, i am developing applications with

Re: GLADE or not GLADE???. gtk on rails

2008-04-30 Thread Tristan Van Berkom
On Wed, Apr 30, 2008 at 7:11 PM, Martin (OPENGeoMap) [EMAIL PROTECTED] wrote: hi all: We have a insteresting discusion about use libglade or not. In OOP languajes like c++, c# or ruby it´s important find other methos to build GUIs: Please remember that Glade is not an IDE, its an

Re: Learning Glade

2008-04-26 Thread Tristan Van Berkom
On Sat, Apr 26, 2008 at 7:47 AM, Patrick Braga [EMAIL PROTECTED] wrote: [...] On 26/04/2008, Patrick Braga [EMAIL PROTECTED] wrote: Hi, I'm a relative newcomer to GTK+ programming, but I've been using GNU/Linux for about a year and a half, know it pretty well, and am enjoying

Re: GtkWindow from X window id

2008-04-10 Thread Tristan Van Berkom
On Thu, Apr 10, 2008 at 3:15 PM, Brian J. Tarricone [EMAIL PROTECTED] wrote: Xavier Toth wrote: Is it possible to retrieve a GtkWindow using the native X window id? Something like this might work: GdkWindow *window = gdk_window_lookup(xid); GtkWidget *widget =

Re: How to know which signals go with which widgets

2008-03-30 Thread Tristan Van Berkom
On Sun, Mar 30, 2008 at 7:51 AM, Gregory Hosler [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 HI all, if I look up the documentation on a particular widget, at the bottom of the devhelp page there is documentation on which signals it supports. I'm looking

Re: g_connect_signal events. underscore vs dash

2008-03-29 Thread Tristan Van Berkom
On Sat, Mar 29, 2008 at 10:20 PM, Gregory Hosler [EMAIL PROTECTED] wrote: [...] I have some old code, that in many places is using underscores instead of dashes. e.g. button_release_event; in fact I have cases where the same signal is g_connect'ed in different places in the code, one

Re: mixing widgets via glade and standard way ? (newbie)

2008-02-07 Thread Tristan Van Berkom
On Feb 3, 2008 8:41 AM, Fred Müller [EMAIL PROTECTED] wrote: Dear folks, I'm wondering whether XML/glade based widget creation and 'standard' widget creation combine. All widgets are generated by libglade-2.0. Changing the text in an existing label works, adding a label to the table

Re: Does libX11 use shared memory between several clients?

2008-01-31 Thread Tristan Van Berkom
On Jan 29, 2008 5:35 AM, Bin Chen [EMAIL PROTECTED] wrote: [...] I can't see any code to transfer modified display structure to the server, this API is invoked by a XIM server so obviously the register stuff need to be accessed by other process, is there any shared memory trick in libX11?

Re: Weird problems: C library programs crashing in combination with GTK UI

2008-01-22 Thread Tristan Van Berkom
2008/1/22 [EMAIL PROTECTED]: [...] Pseudo code for my call back function [for some button which will initiate action] is as follows: /***CALL BACK FUNCTION CODE SNIPPET ***/ g_timeout_add(1500,progress_timeout,progressbarwidget); f1();//THE BIG FUNCTION

Re: Can GTK+ make use of XSHM extension from MIT

2008-01-11 Thread Tristan Van Berkom
On Jan 10, 2008 11:38 PM, Bin Chen [EMAIL PROTECTED] wrote: [...] Ok, let me make the things clear, the content in a gdk window includes many widgets, such as label, entry, button. But from the perspective of X server, this widgets are just bitmaps with the states updated by GTK+, right? A

Re: Can GTK+ make use of XSHM extension from MIT

2008-01-11 Thread Tristan Van Berkom
On Jan 11, 2008 12:03 PM, Bin Chen [EMAIL PROTECTED] wrote: [...] Thanks for your reply, but I wonder how the Xlib or GDK knows the image is drawing in a shared memory segment? In detail can you show me some pseudo code to how to do it? Well Gdk does know because it created the backing

Re: Can GTK+ make use of XSHM extension from MIT

2008-01-11 Thread Tristan Van Berkom
On Jan 11, 2008 11:01 PM, Bin Chen [EMAIL PROTECTED] wrote: Gdk does all image operations in 32-bits, N800/N810 display is 16-bit. Whether you use SHM or not can be of less concern than this from the performance point of view. OK, so your point is because the convert process must be done

Re: Custom container widget - childs drawn in top-left corner of window

2007-12-18 Thread Tristan Van Berkom
On Dec 15, 2007 8:46 AM, Stephan Arts [EMAIL PROTECTED] wrote: Hi, I am having an issue with a new container widget I am writing. I have overridden the size_request and size_allocate methods.[0] For some reason, the children are all rendered in the top-left corner of the main window. Not

Re: Custom container widget - childs drawn in top-left corner of window

2007-12-15 Thread Tristan Van Berkom
On Dec 15, 2007 8:46 AM, Stephan Arts [EMAIL PROTECTED] wrote: Hi, I am having an issue with a new container widget I am writing. I have overridden the size_request and size_allocate methods.[0] For some reason, the children are all rendered in the top-left corner of the main window. Not

Re: Question about the realize signal

2007-12-12 Thread Tristan Van Berkom
On Dec 4, 2007 12:51 PM, Jim George [EMAIL PROTECTED] wrote: On Dec 4, 2007 3:06 AM, Dan H [EMAIL PROTECTED] wrote: Hello, Hi, first about your radio buttons, you can set them to be in container mode in the property editor, this will allow you to remove the label and put anything you want

Re: Slow UI updates with GtkImage

2007-12-12 Thread Tristan Van Berkom
On Nov 27, 2007 6:11 AM, David Brigada [EMAIL PROTECTED] wrote: Hi, I'm working on an audio player application. I currently have two elements that change on a frequent basis: a GtkHScale and a GtkImage. Whenever I update the data, I call gtk_widget_queue_draw on the widget that changed.

Re: Set widget size in percentage

2007-12-08 Thread Tristan Van Berkom
On Dec 8, 2007 4:50 AM, Prashant J Zaveri [EMAIL PROTECTED] wrote: Hello... I am writing a gtk application to run on some other display. I want to maintain the size and layout of widgets that I have set on my desktop.For that I would like to specify widget size in percentage. Any

Re: Question about the realize signal

2007-12-04 Thread Tristan Van Berkom
On Dec 4, 2007 12:51 PM, Jim George [EMAIL PROTECTED] wrote: On Dec 4, 2007 3:06 AM, Dan H [EMAIL PROTECTED] wrote: Hello, Hi, first about your radio buttons, you can set them to be in container mode in the property editor, this will allow you to remove the label and put anything you want

Re: Contents of VBox don't draw after putting it in Viewport

2007-12-02 Thread Tristan Van Berkom
On Dec 2, 2007 3:07 PM, Jeffrey Barish [EMAIL PROTECTED] wrote: It's a long shot, but I am hoping that someone might recognize my problem from this general description. I tried to reduce my code to a test case, but it works there. After spending an entire day on this problem, I am stumped.

Re: Slow UI updates with GtkImage

2007-11-27 Thread Tristan Van Berkom
On Nov 27, 2007 6:11 AM, David Brigada [EMAIL PROTECTED] wrote: Hi, I'm working on an audio player application. I currently have two elements that change on a frequent basis: a GtkHScale and a GtkImage. Whenever I update the data, I call gtk_widget_queue_draw on the widget that changed.

Re: Maybe I need to use threads. I've been using gtk_main_iteration_do() but having problems

2007-10-19 Thread Tristan Van Berkom
On Tue, 2007-10-16 at 16:12 -0600, Jeff Eberl wrote: [...] First is that the display doesn't do anything when my program is doing it's thing. So it looks like it freezes. I'm okay with that. I've never used threads before, and I'm not sure this is the best project to start with. ofcourse

Re: How to change root window coordinates

2007-08-13 Thread Tristan Van Berkom
On Sun, 2007-08-12 at 19:09 -0700, Matthew Jiang wrote: I was porting gkt to an embeded system. The problem is that I always got unwanted display offset on LCD. I used gdk_window_get_root_origin function get origin position and found root_x equals a wiered number not zero. How could I fix

Re: Libglade resource consuming question.

2007-08-09 Thread Tristan Van Berkom
On Thu, 2007-08-09 at 12:55 -0400, Carlos Savoretti wrote: Hi all! [...] Do I be clear ? (When doubt appears it's probably not...) Shortly: GladeXml objects with a moderate amount of widgets are very resource consuming ? or not compared against xmlDocDumpFormatMemory () result ? You can take

<    1   2   3   4   5   >