Re: compiling glade

2018-03-22 Thread Tristan Van Berkom
On Thu, 2018-03-22 at 19:13 +0100, arkkimede wrote: > Thank You Tristan for Your Kindness. > Unfortunately, this new release of Glade require libgtk-3.20.0 and in > my linuxbox Ubuntu 16.04 I have only 3.18.0. > The 3.20.0 is present in Ubuntu 17 but this release is not stable > enough to start to

Re: compiling glade

2018-03-22 Thread Tristan Van Berkom
Hi, On Thu, 2018-03-22 at 14:52 +0100, arkkimede wrote: > HI! > I want to install the latest version of glade downloaded from git-hub. > > I read the instruction. > > There is written that configure.ac or configure.in is used to generate the > script configure. > To do that execute the command

Re: centered and right justified label in the same line.

2018-02-26 Thread Tristan Van Berkom
On Mon, 2018-02-26 at 09:23 +0100, Stefan Salewski wrote: > On Mon, 2018-02-26 at 09:16 +0100, Wojciech Puchar wrote: > > How to do this in GTK 2. whatever i try i'm getting first label > > centered  > > relative to space remaining after second label not to whole hbox. how > > to  > > do this

Re: Two issues with librsvg

2017-10-23 Thread Tristan Van Berkom
With a very brief look at your valgrind output i can tell you that you need a suppressions file. You may be leaking, but you are also counting GType registration as "possibly lost", this is constant data for static types which will be allocated once and remain on the heap for program lifetime,

Re: Locale switch on the fly

2017-07-17 Thread Tristan Van Berkom
On Mon, 2017-07-17 at 12:32 +0300, Igor Chetverovod wrote: > Hi all, I have a need to switch locale on the fly (without  an > application > UI reload). > I  have a function which are using gkt_container_forall()  for > marking of > all widgets are having GObject property "label" ,  all of them get

Re: Can I get GTK_RESPONSE_ACCEPT/REJECT from modal dialog by glade.

2017-06-25 Thread Tristan Van Berkom
Hi > On Jun 25, 2017, at 5:40 PM, michinari.nukazawa > wrote: > > Hello. > I develop vecterion vector graphics editor in GTK3/cairo. > https://github.com/MichinariNukazawa/vecterion_vge > I try porting the "New Document" dialog to xml file by glade from C code. >

Re: Best practise inheritance

2017-03-21 Thread Tristan Van Berkom
On Tue, 2017-03-21 at 18:27 +0100, S. Jacobi wrote: > On Mon, 20 Mar 2017 16:01:39 + > Tristan Van Berkom <tristan.vanber...@codethink.co.uk> wrote: > > > > > > > Use instance private data, this will not need any priv pointer and > > can be done wit

Re: Best practise inheritance

2017-03-20 Thread Tristan Van Berkom
On Mon, 2017-03-20 at 16:36 +0100, S. Jacobi wrote: > First of all, inheritance may be the wrong word here in plain c, but > I > don't know how else to name it. Sorry replied to this from my phone and missed some things... > In different projects I see different approaches how to derive custom >

Re: Best practise inheritance

2017-03-20 Thread Tristan Van Berkom
Hi > On Mar 20, 2017, at 3:36 PM, S. Jacobi wrote: > > First of all, inheritance may be the wrong word here in plain c, but I > don't know how else to name it. > > In different projects I see different approaches how to derive custom > widgets from existing ones. I

Re: How to use glade with a GtkHeaderBar with different layouts

2017-03-07 Thread Tristan Van Berkom
more maintainable I think than showing/hiding widgets (or adding removing them, adding and removing them is even more of a headache, as you have to make sure you retain ownership while carrying them over, floating refs and all that noise). Cheers,     -Tristan > Best regards, > >

Re: How to use glade with a GtkHeaderBar with different layouts

2017-03-06 Thread Tristan Van Berkom
On Mon, 2017-03-06 at 22:26 +0100, Iñigo Martínez wrote: > Recently, I started moving UI code from bare C to Glade XML files, so > the UI definition gets split from the UI logic. > > One of the widgets I have been moving is a GtkHeaderBar. The > application uses a GtkStack to move between

Re: Ideas of new widgets and critics, only for enhance gtk+.

2016-12-11 Thread Tristan Van Berkom
On Sun, 2016-12-11 at 10:18 +0100, eddie wrote: > Hi to all gtk+ users, > > At first I get few ideas about some new widgets. > > > > 1. The 3 states button. > --- > > The most important, the most easy to implement is the idea

Re: Editable SpinButton on a TreeView: detect *every* changes

2016-11-14 Thread Tristan Van Berkom
Hi, On Tue, 2016-11-15 at 02:09 +0100, pozzugno wrote: [...] > I have tried to catch "editing_started", "editing_canceled" and > "edited"  > signals of CellRenderer. In "editing_started" callback, I retrieve > and  > save the row and column of the cell the user is going to edit. I > also  >

Re: gtk_widget_grab_focus sets scrollbar adjustments to 0

2015-12-28 Thread Tristan Van Berkom
On Mon, 2015-12-28 at 18:01 +0800, Franco Broi wrote: > Hi > > I have a drawingarea inside a scrolled window for which I'd like to > grab > the focus so the user can use keyboard inputs but I want to do it > without changing the scrolled window position. What I'm finding is > the >

Re: data type that preserve order

2015-10-31 Thread Tristan van Berkom
> On Oct 31, 2015, at 4:10 PM, Andrea Zagli wrote: > > Il giorno ven 30 ott 2015 19:09:47 CET, Emmanuele Bassi ha scritto: >> Hi; >> >>> On 30 October 2015 at 16:43, Andrea Zagli wrote: >>> is there a data type, similar to array, that preserve the order on

Re: Template Widgets inside another GtkBuilder file

2015-10-04 Thread Tristan Van Berkom
On Sat, Oct 3, 2015 at 10:14 AM, Victor Aurélio Santos wrote: How can I do that ? Just build all together results in this warning: (ajami:3475): Gtk-CRITICAL **: Error building template class 'AjamiMainWindow' for an instance of type 'AjamiMainWindow': Invalid

Re: GtkFileChooserDialog, Glade and header bars

2015-09-06 Thread Tristan van Berkom
> On Sep 5, 2015, at 1:09 PM, rastersoft wrote: > > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Hi all: > > I'm using a GtkFileChooserDialog created with Glade, but I receive a > warning when I create it: > > Warning: Content added to the action

Re: glade3, how to get the response of GtkFileChooserDialog somwhere in my code and open a file?

2015-01-17 Thread Tristan Van Berkom
On Sat, 2015-01-17 at 00:57 -0500, Nicolas Jäger wrote: Hi g(tk)uys, I have a GtkFileChooserDialog with two buttons, one Open and one Cancel. They have the respective Response ID set to 0 and 1. So when I select a file and click on Open GTK sents the code 0 somewhere, but I don't know how

Re: GtkWidgets, Who owns what?

2014-11-17 Thread Tristan Van Berkom
On Mon, 2014-11-17 at 09:01 -0600, The Devils Jester wrote: I have some questions about various situations and whether or not GTK or my program is responsible for freeing the objects/memory in these situations. Situation 1: I have a (visible) form, with a container, with a widget. I close

Re: GtkWidgets, Who owns what?

2014-11-17 Thread Tristan Van Berkom
the reference count manually, then the widget (and it's children if it's a container) won't be destroyed. When you say holding a reference, do you mean something that has manually increased the reference count? On Nov 17, 2014 9:33 AM, Tristan Van Berkom tris...@upstairslabs.com wrote: On Mon

Re: GtkWidgets, Who owns what?

2014-11-17 Thread Tristan Van Berkom
On Tue, 2014-11-18 at 01:05 +0900, Tristan Van Berkom wrote: On Mon, 2014-11-17 at 10:02 -0600, The Devils Jester wrote: I'm sorry, Form is (I believe) a holdover term from using Visual Basic over a decade ago. I do mean Window when I say that. Most of those answers are what I expected

Re: Widget sizing?

2014-11-15 Thread Tristan Van Berkom
On Sat, 2014-11-15 at 15:38 -0600, The Devils Jester wrote: A GtkLayout does not seem to work, it seems that it does indeed request the size of its children, so that if I put a GtkLayout inside a GtkWindow, and I size the GtkLayout to a specific size, then I cant resize the window smaller than

Re: Flowbox: widget expanding

2014-11-05 Thread Tristan Van Berkom
On Wed, 2014-11-05 at 10:56 +0100, Cedric Bellegarde wrote: Here the code: First, please remember to Reply-All or reply to the list, this is not a private discussion I'm having. #!/usr/bin/python from gi.repository import Gtk win = Gtk.Window() flow = Gtk.FlowBox() b1 =

Re: Can put a GtkLayout in a GtkListBox

2014-11-05 Thread Tristan Van Berkom
On Wed, 2014-11-05 at 13:08 +0100, Cedric Bellegarde wrote: Hello, in this code, adding a layout to a GtkListBox do not show layout content :( What am i missing? A GtkLayout is like a GtkViewport which you can place widgets at specific locations and draw on etc, it has the special

Re: Flowbox: widget expanding

2014-11-04 Thread Tristan Van Berkom
On Tue, 2014-11-04 at 08:57 +0100, Cedric Bellegarde wrote: Hello, i'm looking for a way to stop widgets vertically expand in a gtkflowbox()... Look at exemple, if you resize the window, button gets vertical space... I'm afraid you must have forgotten to attach the example, or perhaps it

Re: nuts!

2014-07-29 Thread Tristan Van Berkom
On Tue, Jul 29, 2014 at 6:36 AM, Chris Vine ch...@cvine.freeserve.co.uk wrote: On Mon, 28 Jul 2014 23:00:34 -0700 Gary Kline kl...@thought.org wrote: while I can create several {N} labels, they print centered. how do I get the labels to print from the left side of the window widget: Use

Re: How to do backend-per-process with GDBus properly

2014-07-14 Thread Tristan Van Berkom
Hi Milan, On Fri, 2014-05-30 at 17:34 +0200, Milan Crha wrote: [...] In case of another client trying to open a different backend, the steps above will look the same, only the factory will open a new subprocess. The subprocess part makes it complicated, because: a) the needed D-Bus

Re: When to free GtkBuilder

2014-04-18 Thread Tristan van Berkom
On 2014-04-18, at 10:31 AM, Tristian Celestin tristian.celes...@outlook.com wrote: Is it necessary to keep a GtkBuilder object around once I've obtained references to relevant widgets and connected the widgets to handlers? No, there is no reason to keep the builder object alive after that

Re: Redistribution of GTK DLLs

2014-03-04 Thread Tristan Van Berkom
On Wed, 2014-03-05 at 17:13 +1100, Chris Angelico wrote: On Wed, Mar 5, 2014 at 12:27 PM, Daniel Kasak d.j.kasak...@gmail.com wrote: If you're in doubt, I think the best way to do this is to distribute things separately. Just make an installer / updater for the GTK libs ( that would be

Re: GTK signals question.

2014-03-04 Thread Tristan Van Berkom
On Wed, 2014-03-05 at 18:01 +1100, Chris Angelico wrote: On Wed, Mar 5, 2014 at 5:43 PM, Chris Moller mol...@mollerware.com wrote: I'm writing an app, that among a lot of other stuff, has three mutually interacting spinbuttuns, i.e., if I increment spinbutton A, its callback then updates

Re: GTK signals question.

2014-03-04 Thread Tristan Van Berkom
On Wed, 2014-03-05 at 02:20 -0500, Chris Moller wrote: On 03/05/14 02:01, Chris Angelico wrote: On Wed, Mar 5, 2014 at 5:43 PM, Chris Moller mol...@mollerware.com wrote: I'm writing an app, that among a lot of other stuff, has three mutually interacting spinbuttuns, i.e., if I increment

Re: Using a TextView as a sort of Hbox with wrapping

2014-01-27 Thread Tristan Van Berkom
On Tue, 2014-01-28 at 01:56 +1100, Chris Angelico wrote: On Tue, Jan 28, 2014 at 1:30 AM, Tristan Van Berkom tris...@upstairslabs.com wrote: You can get the behavior you are looking for with EggWrapBox: https://git.gnome.org/browse/libegg/tree/libegg/wrapbox Just copy the eggwrapbox

Re: Using a TextView as a sort of Hbox with wrapping

2014-01-27 Thread Tristan Van Berkom
On Mon, 2014-01-27 at 03:49 +1100, Chris Angelico wrote: On Mon, Jan 27, 2014 at 3:43 AM, James Tappin jtap...@gmail.com wrote: If I interpret what you are trying to do correctly (not necessarily a given), then I would have thought that GtkScrolledWindow (possibly in conjunction with

Re: Using a TextView as a sort of Hbox with wrapping

2014-01-27 Thread Tristan Van Berkom
On Tue, 2014-01-28 at 03:08 +1100, Chris Angelico wrote: On Tue, Jan 28, 2014 at 3:00 AM, Tristan Van Berkom tris...@upstairslabs.com wrote: Sorry I did not take into account that you were working with the GTK+2 library and not GTK+3. Ah, I should have mentioned, sorry. There has been

Re: Sorting a TreeView with Glade/GtkBuilder

2014-01-09 Thread Tristan Van Berkom
On Thu, 2013-12-26 at 09:34 -0600, Craig wrote: Hello, I was wondering how I could sort a liststore-based treeview in glade? I've already set all columns' sort column id, but that apparently doesn't initiate the sorting behavior. Basically, I have a boolean/toggle column and then a text

Re: GtkTreeView isn't updating when GtkListStore appended and set

2014-01-05 Thread Tristan Van Berkom
On Sat, 2014-01-04 at 23:46 -0600, Michael Cronenworth wrote: On 01/04/2014 05:21 PM, Jordan H. wrote: In Glade I've defined column 0 in the list store as a gchararray cell. I even tried forcing the assignment of GtkListStore to GtkTreeView (knowing full well I wouldn't need to) to no

Re: Best practice query: Entry field user's done editing handling?

2013-12-23 Thread Tristan Van Berkom
On Mon, 2013-12-23 at 09:41 +, Phillip Wood wrote: On 16/12/13 21:27, Chris Angelico wrote: I have a form with a whole pile of entry fields (GTK2.Entry), and I need to do some processing (and save the edit) whenever the user's edited a field and is now done editing. Is there a

Re: FW: Question About Creating Composite Widget Template

2013-10-24 Thread Tristan Van Berkom
On Fri, Oct 25, 2013 at 3:47 AM, Tristian Celestin tristian.celes...@outlook.com wrote: I created a composite widget template with Glade, and now I am binding all the children in the composite widget template to private data members in my class. When I bind one particular member, box1, I get

Re: Expander question

2013-08-17 Thread Tristan Van Berkom
Hi Robert, My first impression is that GtkExpander just does not support this type of setup, there may be some way around this but it would be a hack, the expander will want to just eat events in the label-widget area and you will probably have to fight the expander in order to get your events

Re: How should I use GtkHeaderBar without having a duplicate title bar on older platforms?

2013-07-25 Thread Tristan Van Berkom
On Fri, Jul 26, 2013 at 7:27 AM, Dylan McCall dylanmcc...@gmail.com wrote: For my GSoC project, I'm writing an application that uses GtkHeaderBar. Using Gtk 3.8, with libgd as a handy drop-in replacement for the new features in 3.9+, it looks like this:

Re: Simulate mouse/button presses?

2013-07-09 Thread Tristan Van Berkom
On Wed, Jul 10, 2013 at 6:25 AM, Jim Norton jimnor...@jimnorton.org wrote: Greetings, I have some unique embedded hardware that has a touchscreen device that doesn't have any Linux drivers to make it appear as a mouse etc. The touchscreen communicates via USB using a proprietary protocol. If

Re: gtk_print_operation_run() blocks and ignores callback

2013-07-04 Thread Tristan Van Berkom
On Thu, Jul 4, 2013 at 9:22 PM, Satz Klauer satzkla...@googlemail.com wrote: I want to print out some vectordata using GTK/Linux. That's what I already have: GtkPrintOperation *op; op = gtk_print_operation_new(); gtk_print_operation_set_n_pages(op, 1); gtk_print_operation_set_unit

Re: Insert Various GTKWidgets into a dlg_window

2013-06-29 Thread Tristan Van Berkom
On Sun, Jun 30, 2013 at 12:34 AM, Rui Pedro Caldeira rpcalde...@outlook.com wrote: Thanks Andrew, that worked perfectly. I'm being able to put all my widgets into the table. But now I'm having another problem. How can I re-size the widgets the way I want (standard size)? Because they are taking

Re: gobject across network

2013-06-16 Thread Tristan Van Berkom
On Mon, Jun 17, 2013 at 1:38 AM, Emmanuele Bassi eba...@gmail.com wrote: hi; On 16 June 2013 17:24, Andrea Zagli aza...@libero.it wrote: is there a way to send a gobject from a server to a client via network (ex. via http or other protocol)? i want to create a gobject in a daemon in a

Re: GUI freeze and long blocking operation

2013-06-14 Thread Tristan Van Berkom
On Fri, Jun 14, 2013 at 8:28 AM, Kip Warner k...@thevertigo.com wrote: On Thu, 2013-06-13 at 08:59 +0100, jcup...@gmail.com wrote: Hi Kip, Hey John, There are two easy ways to do a long operation in Python. First, with idle_add(). Your callback should run for no more than 50ms or so

Re: GTK free function doesn't appear to have any affect.

2013-06-14 Thread Tristan Van Berkom
On Sat, Jun 15, 2013 at 12:23 AM, dE de.tec...@gmail.com wrote: On 06/14/13 17:02, Matthias Clasen wrote: On Fri, Jun 14, 2013 at 3:27 AM, dE de.tec...@gmail.com wrote: I was monitoring the memory usage before and after execution of g_object_unref and gtk_list_store_clear, and it didnt

Re: GTK free function doesn't appear to have any affect.

2013-06-14 Thread Tristan Van Berkom
On Sat, Jun 15, 2013 at 2:33 AM, dE de.tec...@gmail.com wrote: On 06/14/13 22:09, Chris Vine wrote: On Fri, 14 Jun 2013 21:41:05 +0530 dEde.tec...@gmail.com wrote: On 06/14/13 17:02, Matthias Clasen wrote: On Fri, Jun 14, 2013 at 3:27 AM, dEde.tec...@gmail.com wrote: I was monitoring

Re: Prevent sort of GtkListStore.

2013-06-13 Thread Tristan Van Berkom
On Wed, Jun 12, 2013 at 11:38 PM, dE de.tec...@gmail.com wrote: With gtk_tree_view_column_set_sort_column_id (), it appears that GtkListStore also gets sorted. I don't want that to happen, since the data in it has to be compared. The sorting of GtkTreeView actually sorts the model, it does so

Re: glade and C code

2013-05-27 Thread Tristan Van Berkom
On Tue, May 28, 2013 at 4:59 AM, Thomas A. Moulton t...@moulton.us wrote: ok here's a simple question... If I have c code that creates all the widgets I can get the pointers to them as needed. How can I get the GtkNotebook *pointer when I create things with glade? If there a function I can

Re: GTK+3 motion events and is_hint

2013-05-17 Thread Tristan Van Berkom
This is a good question, actually I haven't used this feature since GTK+2... I'd be curious to know the answer but here is my input anyway. Your application doesn't do much between is_hint events, so it could be that if you were slow handling the hint events, you might receive events that are

Re: Can I install both GTK+2 and GTK+3?

2013-05-17 Thread Tristan Van Berkom
On Fri, May 17, 2013 at 11:17 PM, Emmanuele Bassi eba...@gmail.com wrote: hi; On 17 May 2013 12:37, David Nečas y...@physics.muni.cz wrote: On Fri, May 17, 2013 at 11:40:10AM +0100, Emmanuele Bassi wrote: it's maintained only for critical bugs, or for platform support; no new feature, and no

Re: regarding IconView use

2013-04-23 Thread Tristan Van Berkom
It's not the expected behaviour. GtkIconView lays out it's icons based on the available/allocated width, unless the columns property is explicitly set, it always has. It's possible that there was a bug earlier on in 3.x (3.2 ? 3.4 ?), but if you see ./tests/testiconview you will find icons that

Re: code crash after 25-30 min only!

2013-04-20 Thread Tristan Van Berkom
On Tue, Apr 16, 2013 at 8:58 PM, Eric Wajnberg eric.wajnb...@sophia.inra.fr wrote: Hi there, I just remain unable to debug this code. Actually, it runs very well but crashes after 30-35 minutes only. This is a stopwatch-type app. However, I actually need to refresh things on a continuous

Re: is this correct way to open file in buffer?

2013-01-30 Thread Tristan Van Berkom
On Wed, Jan 30, 2013 at 8:39 AM, Rudra Banerjee rudra.baner...@aol.co.uk wrote: Dear friends, I am trying hard to get rid of file reading and editing (as evident from my previous post) Here is a small code where I tried to open my file in a buffer and scan. Its small, 50 line code. I will be

Re: Incorrect number of columns in GtkIconView

2013-01-19 Thread Tristan Van Berkom
: https://bugzilla.gnome.org/show_bug.cgi?id=692063 . Hope I did it right O:) El 18/01/13 06:32, Tristan Van Berkom escribió: On Fri, Jan 18, 2013 at 8:49 AM, rastersoft ras...@rastersoft.com wrote: Hi all: I'm having an odd problem with GtkIconView. In Ubuntu 12.04, with Gtk 3.4, all

Re: Incorrect number of columns in GtkIconView

2013-01-17 Thread Tristan Van Berkom
On Fri, Jan 18, 2013 at 8:49 AM, rastersoft ras...@rastersoft.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all: I'm having an odd problem with GtkIconView. In Ubuntu 12.04, with Gtk 3.4, all worked fine, but now, in Ubuntu 12.10 and Gtk 3.6, there's this curious problem.

Re: duplicating GtkBuilder created widget objects

2012-12-03 Thread Tristan Van Berkom
On Mon, Dec 3, 2012 at 3:12 PM, Joe Steeve j...@hipro.co.in wrote: On Sun, 2012-12-02 at 13:35 +0100, Tomasz Jankowski wrote: I think, that you cannot easily copy widgets. In such situation I usually use gtk_builder_add_objects_from_file(). When we do this, can there be two sets of objects

Re: Drag and drop, inter-widget

2012-10-12 Thread Tristan Van Berkom
On Sat, Oct 13, 2012 at 1:02 PM, John Coppens j...@jcoppens.com wrote: Hello guys, I've got DnD actually working, between a GtkTreeView and a GtkLayout. I'm using it to make a scheduler, where the TreeView has the classes to be scheduled, and the Layout is the actual grid. Though this

Re: Strange behaviour of GtkCheckMenuItem with submenus

2012-10-10 Thread Tristan Van Berkom
From what I understand you have a strange expectation of menu items. Items are either parents of groups, or are controls for some actions in the program, but not simultaneously. Menu items can be insensitive but usually those are because the context of the program doesnt allow them to be valid

Re: destroy a widget while keeping the window with Glade

2012-10-07 Thread Tristan Van Berkom
On Sun, Oct 7, 2012 at 2:57 PM, Frank Cox thea...@melvilletheatre.com wrote: I've just started playing with Glade and once again I'm wondering if I'm using the wrong approach to get stuff done, since I can't find anything that tells me how to do this. So far, I've been creating a main

Re: Handle Enter pressing at GtkEntry

2012-10-04 Thread Tristan Van Berkom
On Thu, Oct 4, 2012 at 5:55 PM, David Nečas y...@physics.muni.cz wrote: On Wed, Oct 03, 2012 at 08:19:39PM -0700, Andrew Potter wrote: On Wed, Oct 3, 2012 at 7:42 AM, Yury Alyaev muta...@rambler.ru wrote: What is the right way to catch Enter pressing at the end of the text input to

Re: gtk apps on iOS/Android?

2012-09-09 Thread Tristan Van Berkom
On Mon, Sep 10, 2012 at 3:15 AM, Michael Torrie torr...@gmail.com wrote: On 09/07/2012 07:40 AM, Allin Cottrell wrote: I'm contemplating trying to produce a version of my gtk app for tablet use. Can anyone point me to relevant resources or examples? At this point I'm totally clueless about

Re: gtk3 + python : lookup_widget

2012-08-20 Thread Tristan Van Berkom
On Mon, Aug 20, 2012 at 2:32 PM, Patrick Shirkey pshir...@boosthardware.com wrote: On Mon, August 20, 2012 6:59 am, Tristan Van Berkom wrote: The lookup_widget() paradigm comes from a very old time when we had very poor tools and actually it originates from people using generated code from

Re: gtk3 + python : lookup_widget

2012-08-19 Thread Tristan Van Berkom
The lookup_widget() paradigm comes from a very old time when we had very poor tools and actually it originates from people using generated code from the original Glade tool (Glade versions 1 and 2). Ideally, as specially as you are using python, your application should be modular. Perhaps you

Re: gtk3 + python : lookup_widget

2012-08-19 Thread Tristan Van Berkom
On Mon, Aug 20, 2012 at 1:59 PM, Tristan Van Berkom t...@gnome.org wrote: The lookup_widget() paradigm comes from a very old time when we had very poor tools and actually it originates from people using generated code from the original Glade tool (Glade versions 1 and 2). Correction

Re: what is the preferred way to wait while polling a flag

2012-05-17 Thread Tristan Van Berkom
Ooops, forgot to CC the list: On Thu, May 17, 2012 at 1:43 PM, Rick Berger rckb...@gmail.com wrote: In GTK+ 2.20, what is the preferred way to wait while polling a flag in shared memory every 25 milliseconds in code something like this? The preferred thing to do is to never use polling for

Re: GtkTable cells resizing

2012-05-14 Thread Tristan Van Berkom
Are you using GTK+ 3 ? If so, use GtkGrid instead... possibly just that will fix things for you. Short of that, if I understand correctly, you have a target state/configuration of a GtkTable (or GtkGrid), if you construct the table in the target configuration from scratch, I take it things work

Re: GtkTable cells resizing

2012-05-14 Thread Tristan Van Berkom
On Mon, May 14, 2012 at 10:29 PM, James Steward jamesstew...@optusnet.com.au wrote: On 15/05/12 11:56, Tristan Van Berkom wrote: Are you using GTK+ 3 ? Still on GTK+ 2.0. If so, use GtkGrid instead... possibly just that will fix things for you. Short of that, if I understand correctly

Re: learning gtk+ well: Which book to buy?

2012-03-27 Thread Tristan Van Berkom
Hi, I have to strongly agree with Vlad here, I think the quality of information that you can find in print on GTK+ pales in comparison to what you have readily available on the internet. Of course finding the right material to read might be staggering at first, just toy with the apis a little,

Re: building a modular interface

2012-03-26 Thread Tristan Van Berkom
Hi. First, please dont bluntly use a single Glade file to define your entire interface. I'll attach here the same tarball which I attached a couple months ago here for demonstration: lists.ximian.com/pipermail/glade-users/2012-January/005469.html With the approach described in the attached

Re: building a modular interface

2012-03-26 Thread Tristan Van Berkom
On Tue, Mar 27, 2012 at 2:10 PM, Lachlan lachlan...@gmail.com wrote: On 27 March 2012 14:39, Tristan Van Berkom t...@gnome.org wrote: Hi. First, please dont bluntly use a single Glade file to define your entire interface. I'll attach here the same tarball which I attached a couple months

Re: [beginner] widget layout and resizing

2012-01-24 Thread Tristan Van Berkom
On Tue, Jan 24, 2012 at 8:24 AM, Axel FILMORE axel.film...@gmail.com wrote: Hi there, I'm developing an experimental panel, not something really serious currently, just to learn Gtk+ and Vala. I've done a few things yet, creating an application menu, adding some launchers, adding some

Re: discoveries! gtk DOES dim... how can i infinite-loop?

2012-01-20 Thread Tristan Van Berkom
On Fri, Jan 20, 2012 at 8:12 AM, Gary Kline kl...@thought.org wrote: On Thu, Jan 19, 2012 at 11:18:22AM +0100, David Ne??as wrote: Date: Thu, 19 Jan 2012 11:18:22 +0100 From: David Ne??as y...@physics.muni.cz Subject: Re: discoveries! gtk DOES dim... how can i infinite-loop? To: Gary Kline

Re: any easy way of having a YES/NO dialog return a 1 or 0?

2012-01-17 Thread Tristan Van Berkom
2012/1/17 David Nečas y...@physics.muni.cz: On Tue, Jan 17, 2012 at 04:12:51PM +0900, Tristan Van Berkom wrote: Even in english, these boolean YES/NO questions can seem ambiguous, If you use wordy and convoluted questions such as   Are you sure you want to quit without saving then nothing

Re: any easy way of having a YES/NO dialog return a 1 or 0?

2012-01-16 Thread Tristan Van Berkom
On Tue, Jan 17, 2012 at 10:53 AM, Gary Kline kl...@thought.org wrote: On Sun, Jan 15, 2012 at 10:46:21PM +0100, David Ne??as wrote: Date: Sun, 15 Jan 2012 22:46:21 +0100 From: David Ne??as y...@physics.muni.cz Subject: Re: any easy way of having a YES/NO dialog return a 1 or 0? To: Gary Kline

Re: GTK 3 support status

2012-01-02 Thread tristan . van . berkom
On 2011-12-06, at 8:12 PM, Andrew Cowie and...@operationaldynamics.com wrote: On Tue, 2011-12-06 at 17:47 +0900, Tristan Van Berkom wrote: gtk_widget_set_size_request() should still succeed with the expected behaviour of setting the minimum size of a widget, So, does it do so

Re: Label resizing window, ellipsizing

2012-01-02 Thread Tristan Van Berkom
Try setting width-chars property as well as max-width-chars property. GtkLabel apis could use a face-lift. It's possible that the default minimum width request exceeds the 10 max-width-chars which you set (which is what I assume is causing this problem). Cheers, -Tristan On Fri, Dec

Re: GtkTreeView very slow for large lists

2011-12-16 Thread Tristan Van Berkom
On Fri, Dec 16, 2011 at 10:32 PM, John Lindgren john.lindg...@aol.com wrote: Steve, I use the time shell command and wait for my CPU meter to drop back to idle before quitting the test program, giving something like this:    time ./list-test    real    0m31.719s    user    0m29.168s    

Re: no joy... with bvox into hbox

2011-12-11 Thread Tristan Van Berkom
On Mon, Dec 12, 2011 at 4:22 PM, Gary Kline kl...@thought.org wrote: i've tried everything i can think of--or find examples for online to put two vbox buttons into One hbox,Anybody else? What's a 'vbox button' ? gary --  Gary Kline  kl...@thought.org  http://www.thought.org  Public

Re: mutex doubt

2011-12-07 Thread Tristan Van Berkom
2011/12/8 Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP - marcelo.va...@claro.com.br: On 6 December 2011 18:14, Tristan Van Berkom t...@gnome.org wrote: Or, can glib programs which don't make use of GObject use threads at all ? sure. Out of curiosity, do you recommend me to use

Re: GTK 3 support status

2011-12-06 Thread Tristan Van Berkom
On Tue, Dec 6, 2011 at 1:15 AM, John Lindgren john.lindg...@aol.com wrote: Hi Tristan, This makes a bit more sense now. On 12/05/2011 09:27 AM, Tristan Van Berkom wrote: On Mon, Dec 5, 2011 at 11:18 PM, John Lindgrenjohn.lindg...@aol.com  wrote: It looks to me as though there are 3

Re: GTK 3 support status

2011-12-05 Thread Tristan Van Berkom
On Mon, Dec 5, 2011 at 10:56 PM, John Lindgren john.lindg...@aol.com wrote: On 12/05/2011 02:22 AM, Tristan Van Berkom wrote: On Mon, Dec 5, 2011 at 4:18 PM, Tristan Van Berkomt...@gnome.org  wrote: Hi John,   I am responsible for a large part of your pain. And I'm also surprised

Re: GTK 3 support status

2011-12-05 Thread Tristan Van Berkom
On Mon, Dec 5, 2011 at 11:18 PM, John Lindgren john.lindg...@aol.com wrote: It looks to me as though there are 3 separate problems contributing here: 1. GtkLabel does not take into account gtk_widget_set_size_request() when reporting its natural size:

Re: GTK 3 support status

2011-12-04 Thread Tristan Van Berkom
On Mon, Dec 5, 2011 at 9:21 AM, John Lindgren john.lindg...@aol.com wrote: On 12/04/2011 04:02 AM, Emmanuele Bassi wrote: the status is always the same: bugs reported will be looked at by the gtk maintainers depending on time. So the status at this moment is that no developers have time to

Re: GTK 3 support status

2011-12-04 Thread Tristan Van Berkom
On Mon, Dec 5, 2011 at 4:18 PM, Tristan Van Berkom t...@gnome.org wrote: On Mon, Dec 5, 2011 at 9:21 AM, John Lindgren john.lindg...@aol.com wrote: On 12/04/2011 04:02 AM, Emmanuele Bassi wrote: the status is always the same: bugs reported will be looked at by the gtk maintainers depending

Re: Displaying domain objects with GtkTreeView

2011-11-28 Thread Tristan Van Berkom
2011/11/28 Rafał Krupiński r.krupin...@gmail.com: Hi all! How do I display list of custom objects in GtkTreeView? GtkTreeView takes GtkListStore as a model, but it doesn't allow custom objects, only list of gobjects. What could that possibly mean ? If you have custom derived GObjects, you

Re: Displaying domain objects with GtkTreeView

2011-11-28 Thread Tristan Van Berkom
2011/11/28 Rafał Krupiński r.krupin...@gmail.com: On 28.11.2011 14:17, Tristan Van Berkom wrote: 2011/11/28 Rafał Krupińskir.krupin...@gmail.com: Hi all! How do I display list of custom objects in GtkTreeView? GtkTreeView takes GtkListStore as a model, but it doesn't allow custom objects

Re: Is there a developer wiki for gtk?

2011-11-27 Thread Tristan Van Berkom
On Sun, Nov 27, 2011 at 11:48 AM, Stevie Griffiths stevie.craig.griffi...@gmail.com wrote: Hi, Does such a developer wiki exist? (note I think the API documentation and API is good, mostly) I've been feeling frustrated every time I want to learn something new with GTK.  I write apps mostly

Re: GtkBuilder bugs

2011-09-05 Thread Tristan Van Berkom
On Mon, Sep 5, 2011 at 10:49 AM, Michal Suchanek hramr...@centrum.cz wrote: On 4 September 2011 12:32, Tristan Van Berkom t...@gnome.org wrote: Its a bug that needs to be fixed in Glade. You can remove the line that says n-rows safely fwiw I don't think that an extra property would break

Re: GtkBuilder bugs

2011-09-05 Thread Tristan Van Berkom
On Mon, Sep 5, 2011 at 12:43 PM, Michal Suchanek hramr...@centrum.cz wrote: On 5 September 2011 11:29, Tristan Van Berkom t...@gnome.org wrote: On Mon, Sep 5, 2011 at 10:49 AM, Michal Suchanek hramr...@centrum.cz wrote: On 4 September 2011 12:32, Tristan Van Berkom t...@gnome.org wrote: Its

Re: GtkBuilder bugs

2011-09-04 Thread Tristan Van Berkom
Its a bug that needs to be fixed in Glade. You can remove the line that says n-rows safely fwiw Cheers, -Tristan On Sun, Sep 4, 2011 at 1:41 AM, Bernhard Schuster schuster.bernh...@googlemail.com wrote: I am using a gtk-builder file for my application, which uses a Grid widget for

Re: Question on touchscreen devices

2011-08-31 Thread Tristan Van Berkom
On Wed, Aug 31, 2011 at 4:10 PM, John M Ridge j...@netseats.com wrote: Hello all, I'm tinkering with the idea of writing a GTK+ app targeted at an industrial touchscreen all-in-one device (like this one: http://www.faytech.com/product_show.php?id=52). But I first would like to write the app

Re: Compile time GTK+ 3 version check

2011-04-23 Thread Tristan Van Berkom
On Sat, Apr 23, 2011 at 4:19 PM, Ardhan Madras aj...@knac.com wrote: Hi All,        I want to port my application to GTK+ 3, but I don't want to broke with GTK+ 2 API and ABI, what is the best way to determine GTK+ 3 version in compile time? Does #if GTK_MAJOR_VERSION == 3 enough for

Re: GtkNotebook with action on click of special tab

2011-04-19 Thread Tristan Van Berkom
On Wed, Apr 20, 2011 at 8:34 AM, Bernhard Schuster schuster.bernh...@googlemail.com wrote: Hi I am trying to achieve the effect of new tab openening if one tab gets selected. Unfortunaltly the doc is very sparse on that: http://developer.gnome.org/gtk/stable/GtkNotebook.html as of using the

Re: GtkTreeView signal before row change

2011-03-08 Thread Tristan Van Berkom
On Wed, Mar 9, 2011 at 12:38 AM, Lance Zhang zhan...@hotmail.com wrote: Hi: I have a situation where I need to verify data before allowing a row change in a GtkTreeView. Essentially: 1. User requests a row change through a keyboard or a mouse; 2. Check if data in the current row has been

Re: custom gtkwidget destruction

2011-02-24 Thread Tristan Van Berkom
On Fri, Feb 25, 2011 at 7:57 AM, James Morris jwm.art@gmail.com wrote: Hi, I'm a little confused over destruction of my custom widgets. I'm mainly looking at existing code for how to do things as I've found the docs (via DevHelp) difficult to understand and to garner an idea of when and

Re: gtk_combo_box_new_text() API

2011-02-22 Thread Tristan Van Berkom
2011/2/23 Timo Schneider ti...@hrz.tu-chemnitz.de: On Tue, 2011-02-22 at 08:51 -0700, Kevin DeKorte wrote: On 02/22/2011 08:46 AM, Allin Cottrell wrote: It seems that you are in fact OK using the GtkComboBox API for this purpose, as in void depopulate_combo_box (GtkComboBox *box) {

Re: enlarge the scrollable area

2011-02-15 Thread Tristan Van Berkom
On Wed, Feb 16, 2011 at 1:49 AM, Stefano Facchini stefano.facch...@gmail.com wrote: Hi, I'm trying to build a scrolled window in a such a way that the child widget has always the same size, regardless of the size of the scrolled window itself. I tried

Re: gtk3: behavior of gtk_widget_set_size_request

2011-02-12 Thread Tristan Van Berkom
On Sun, Feb 13, 2011 at 5:49 AM, Allin Cottrell cottr...@wfu.edu wrote: I'm using gtk_widget_set_size_request on a GtkTreeView that gets embedded in a scrolled window which in turn is embedded in a larger window -- setting the width to 120 and leaving the height unset. This works as expected

Re: Horizontal TreeView?

2011-02-08 Thread Tristan Van Berkom
On Tue, Feb 8, 2011 at 8:29 PM, Gabriele Greco gabriele.gr...@darts.it wrote: There is a way to populate a GtkTreeView so that it grows horizontally? I want to setup cell columns so that physically they are ROWS of the GtkTreeView and obviously in a fixed number and to make the list grow

  1   2   3   4   5   >