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 a

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 prope

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. > > ``` >GtkDialogFlags flag

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 wrote: > > > > > > > Use instance private data, this will not need any priv pointer and > > can be done with th G_DEFINE_TYPE_WITH_PRIVATE() macr

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 can roughly group them into 2

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

2017-03-07 Thread Tristan Van Berkom
e 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, > > 2017-03-07 5:

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 diferent

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

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

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 which >>> elements are inserted? >>

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 object type 'HVMeter' on line 2

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 area of a dialog using

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

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

Re: GtkWidgets, Who owns what?

2014-11-17 Thread Tristan Van Berkom
es them if the reference count is > zero). If I float 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?

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

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 t

Re: Widget sizing?

2014-11-13 Thread Tristan Van Berkom
On Thu, 2014-11-13 at 11:23 -0600, The Devils Jester wrote: > In a nutshell I am (more or less) trying to simulate a vertical layout > manager using a GtkFixed layout manager. I have specific need to do this, > rather than just use the Gtk provided one. If you need a kind of container that GTK+ do

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 pro

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 = Gtk.Bu

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 perha

Re: nuts!

2014-07-29 Thread Tristan Van Berkom
On Tue, Jul 29, 2014 at 6:36 AM, Chris Vine wrote: On Mon, 28 Jul 2014 23:00:34 -0700 Gary Kline 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 'gtk_misc_set_alignment(GTK_MISC(label), 0, 0

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 interf

Re: When to free GtkBuilder

2014-04-18 Thread Tristan van Berkom
On 2014-04-18, at 10:31 AM, Tristian Celestin 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 point - some existing code d

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

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 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 values in B and C

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 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 handy, by the way ..

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

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 > wrote: > > You can get the behavior you are looking for with EggWrapBox: > > https://git.gnome.org/browse/libegg/tree/libegg/wrapbox > > > > Just copy t

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 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 GtkViewport) wo

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

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) t

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 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 a segfault in > gtk_widget

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 f

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 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: > http://ubuntuone.com/0cr9GKuwrbULXMmL3eExmq >From what I

Re: Simulate mouse/button presses?

2013-07-09 Thread Tristan Van Berkom
On Wed, Jul 10, 2013 at 6:25 AM, Jim Norton 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 you are writing fo

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 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 (op,GTK_UNIT_POINTS); >

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 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 up all the > space

Re: gobject across network

2013-06-16 Thread Tristan Van Berkom
On Mon, Jun 17, 2013 at 1:38 AM, Emmanuele Bassi wrote: > hi; > > On 16 June 2013 17:24, Andrea Zagli 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 server and pass it to a cli

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 wrote: > On 06/14/13 22:09, Chris Vine wrote: >> >> On Fri, 14 Jun 2013 21:41:05 +0530 >> dE wrote: >>> >>> On 06/14/13 17:02, Matthias Clasen wrote: On Fri, Jun 14, 2013 at 3:27 AM, dE wrote: > > I was monitoring the memory usage before and

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 wrote: > On 06/14/13 17:02, Matthias Clasen wrote: >> >> On Fri, Jun 14, 2013 at 3:27 AM, dE wrote: >>> >>> I was monitoring the memory usage before and after execution of >>> g_object_unref and gtk_list_store_clear, and it didnt change the memory >>> usage by

Re: GUI freeze and long blocking operation

2013-06-13 Thread Tristan Van Berkom
On Fri, Jun 14, 2013 at 8:28 AM, Kip Warner 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 before retu

Re: Prevent sort of GtkListStore.

2013-06-13 Thread Tristan Van Berkom
On Wed, Jun 12, 2013 at 11:38 PM, dE 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 using the GtkTr

Re: glade and C code

2013-05-27 Thread Tristan Van Berkom
On Tue, May 28, 2013 at 4:59 AM, Thomas A. Moulton 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 call to

Re: GtkAssistant "apply" signal

2013-05-18 Thread Tristan Van Berkom
On Sat, May 18, 2013 at 5:38 PM, Sébastien Granjoux wrote: > Hi > > > Le 18/05/2013 06:57, Kip Warner a écrit : > >> During handling of the "apply" signal in my GtkAssistant, what is the >> recommended way of stopping the assistant from advancing to the next >> page if my code would like to abort

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 wrote: > hi; > > On 17 May 2013 12:37, David Nečas 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 new API is *ever* going i

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 not

Re: regarding IconView use

2013-04-23 Thread Tristan Van Berkom
Does (anybody knows if) Nautilus uses something different for its Icon > View? Nautilus re-layouts its icons just fine. > > Best regards > > El mar, 23-04-2013 a las 23:33 +0900, Tristan Van Berkom escribió: > > I don't know why it regressed in 3.4.x (but the person who f

Re: regarding IconView use

2013-04-23 Thread Tristan Van Berkom
11:08 PM, Colomban Wendling < lists@herbesfolles.org> wrote: > Hi, > > Le 23/04/2013 15:01, Tristan Van Berkom a écrit : > > It's not the expected behaviour. > > > > GtkIconView lays out it's icons based on the available/allocated width, > > unless

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-19 Thread Tristan Van Berkom
On Tue, Apr 16, 2013 at 8:58 PM, Eric Wajnberg 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 basis. Hence, a g_tim

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 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 grateful if anybod

Re: GTK tables

2013-01-27 Thread Tristan Van Berkom
On Mon, Jan 28, 2013 at 4:42 AM, David Buchan wrote: > I've created a table with Glade and put various widgets in some of the cells. > > Ifin one particular rowI have: a label,a text entry, and finally a few cells > that I don't need to put anything into, should I place blank labels in those > l

Re: Incorrect number of columns in GtkIconView

2013-01-19 Thread Tristan Van Berkom
virtualbox a Fedora 18 and tested it inside. >> >> > I created a test case, took some screenshots, and filled a bug report: >> > https://bugzilla.gnome.org/show_bug.cgi?id=692063 . Hope I did it >> right O:) >> >> > El 18/01/13 06:32, Tristan Van Berkom

Re: Incorrect number of columns in GtkIconView

2013-01-17 Thread Tristan Van Berkom
On Fri, Jan 18, 2013 at 8:49 AM, rastersoft 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. > > I set a Gtk

Re: duplicating GtkBuilder created widget objects

2012-12-03 Thread Tristan Van Berkom
On Mon, Dec 3, 2012 at 3:12 PM, Joe Steeve 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 with the sam

Re: Drag and drop, inter-widget

2012-10-12 Thread Tristan Van Berkom
On Sat, Oct 13, 2012 at 1:02 PM, John Coppens 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 works, I c

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 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 window for the program and

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 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 wrote: >> > What is the right way to catch "Enter" pressing at the end of the text >> > input >> > to GtkEntry >> >> gtk_entry_set_ac

Re: gtk apps on iOS/Android?

2012-09-09 Thread Tristan Van Berkom
On Mon, Sep 10, 2012 at 3:15 AM, Michael Torrie 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 porting to >>

Re: gtk3 + python : lookup_widget

2012-08-20 Thread Tristan Van Berkom
On Mon, Aug 20, 2012 at 2:32 PM, Patrick Shirkey 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 g

Re: gtk3 + python : lookup_widget

2012-08-19 Thread Tristan Van Berkom
On Mon, Aug 20, 2012 at 1:59 PM, 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 > the original Glade tool (Glade versions 1 and 2).

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 yo

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 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 synchronization of

Re: GtkTable cells resizing

2012-05-14 Thread Tristan Van Berkom
On Mon, May 14, 2012 at 10:29 PM, James Steward 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. >> >> S

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 a

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

Re: building a modular interface

2012-03-26 Thread Tristan Van Berkom
On Tue, Mar 27, 2012 at 2:10 PM, Lachlan wrote: > On 27 March 2012 14:39, Tristan Van Berkom wrote: >> Hi. >> >> First, please dont bluntly use a single Glade file to define your >> entire interface. >> >> I'll attach here the same tarball whic

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 t

Re: [beginner] widget layout and resizing

2012-01-24 Thread Tristan Van Berkom
On Tue, Jan 24, 2012 at 8:24 AM, Axel FILMORE 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 widgets like, a pager

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 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 >> Subject: Re: discoveries! gtk DOES dim... how can i infinite-loop? >> To: Gary Kline >> Cc: GTK Devel List >> >> O

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

2012-01-17 Thread Tristan Van Berkom
On Tue, Jan 17, 2012 at 10:33 PM, Allin Cottrell wrote: > On Tue, 17 Jan 2012, Tristan Van Berkom wrote: > >> 2012/1/17 David Nečas : >> >>> >>> Hence >>> >>>>    "Are you sure you want to quit without saving ?" >>>>

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

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 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 >> Subject: Re: any easy way of having a YES/NO dialog return a 1 or 0? >> To: Gary Kline >> Cc: GTK Devel List >> >

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

Re: GTK 3 support status

2012-01-02 Thread tristan . van . berkom
On 2011-12-06, at 8:12 PM, Andrew Cowie 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

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 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 >    sys    0m0.

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 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 Service Uni

Re: mutex doubt

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

Re: mutex doubt

2011-12-06 Thread Tristan Van Berkom
On Wed, Dec 7, 2011 at 2:30 AM, wrote: > 2011/12/6 Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP - > : >>        Do I need to call g_thread_init() manually before calling g_mutex_new >> (), in a glib only application? Or is it auto called by default when I call >> g_type_init() and t

Re: GTK 3 support status

2011-12-06 Thread Tristan Van Berkom
On Tue, Dec 6, 2011 at 1:15 AM, John Lindgren 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 Lindgren >>  wrote: >>> >>>

Re: GTK 3 support status

2011-12-05 Thread Tristan Van Berkom
On Tue, Dec 6, 2011 at 2:22 AM, Costin Chirvasuta wrote: > I don't really understand what max-width-chars would be useful for. The max-width-chars property is intended to limit the overall size request of a label. if max-width-chars is set, the label will not by default request a natural width o

Re: GTK 3 support status

2011-12-05 Thread Tristan Van Berkom
On Mon, Dec 5, 2011 at 11:18 PM, John Lindgren 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: > https://bugzilla.gnome.org/show_bug.cgi?id=662043 Not a

Re: GTK 3 support status

2011-12-05 Thread Tristan Van Berkom
On Mon, Dec 5, 2011 at 10:56 PM, John Lindgren wrote: > On 12/05/2011 02:22 AM, Tristan Van Berkom wrote: >> >> On Mon, Dec 5, 2011 at 4:18 PM, Tristan Van Berkom  wrote: >>> >>> Hi John, >>> >>>   I am responsible for a large part of your pai

Re: GTK 3 support status

2011-12-04 Thread Tristan Van Berkom
On Mon, Dec 5, 2011 at 4:18 PM, Tristan Van Berkom wrote: > On Mon, Dec 5, 2011 at 9:21 AM, John Lindgren 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 maintainer

Re: GTK 3 support status

2011-12-04 Thread Tristan Van Berkom
On Mon, Dec 5, 2011 at 9:21 AM, John Lindgren 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 look at bugs

Re: Displaying domain objects with GtkTreeView

2011-11-28 Thread Tristan Van Berkom
2011/11/28 Rafał Krupiński : > On 28.11.2011 14:17, Tristan Van Berkom wrote: >> >> 2011/11/28 Rafał Krupiński: >>> >>> Hi all! >>> >>> How do I display list of custom objects in GtkTreeView? >>> GtkTreeView takes GtkListStore as a

Re: Displaying domain objects with GtkTreeView

2011-11-28 Thread Tristan Van Berkom
2011/11/28 Rafał Krupiński : > 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 can certainly popu

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 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 on my own, with internet a

Re: GtkBuilder bugs

2011-09-05 Thread Tristan Van Berkom
On Mon, Sep 5, 2011 at 12:43 PM, Michal Suchanek wrote: > On 5 September 2011 11:29, Tristan Van Berkom wrote: >> On Mon, Sep 5, 2011 at 10:49 AM, Michal Suchanek wrote: >>> On 4 September 2011 12:32, Tristan Van Berkom wrote: >>>> Its a bug that needs to be fix

Re: GtkBuilder bugs

2011-09-05 Thread Tristan Van Berkom
On Mon, Sep 5, 2011 at 10:49 AM, Michal Suchanek wrote: > On 4 September 2011 12:32, Tristan Van Berkom 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

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 wrote: > I am using a gtk-builder file for my application, which uses a Grid > widget for layouting. When I run the application,

Re: Question on touchscreen devices

2011-08-31 Thread Tristan Van Berkom
On Wed, Aug 31, 2011 at 4:10 PM, John M Ridge 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 to s

  1   2   3   4   5   6   >