Re: GNOME GitLab instance slow?

2018-07-27 Thread Tristan Van Berkom via gtk-devel-list
This is probably better on another list, maybe d-d-l, since this would effect everyone. I can say that since 2 weeks ago, the gitlab.com instance seems to have deployed a huge and sluggish JS payload which brings my browser to a crawl, i dont know if we've opted into that update on the GNOME

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: Functional programming with GLib

2017-05-09 Thread Tristan Van Berkom
On Mon, 2017-05-01 at 19:09 -0400, Matthias Clasen wrote: > > > On Thu, Apr 27, 2017 at 10:29 AM, Emmanuele Bassi > wrote: > > For command line parsing I'd actually favour a slightly bolder > > approach of deprecating GOptionContext, and having something > > slightly > > more

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: Need help in debugging glib crash

2015-05-25 Thread Tristan Van Berkom
On Mon, 2015-05-25 at 16:42 +0300, Alexander Pyhalov wrote: On 05/25/2015 15:33, Alexander Pyhalov wrote: Hello. Here the program crashed. So, we see that emit_in_idle() was called after entering to g_file_monitor_dispose() function, which if I understand this correctly lead to crash.

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: a new combo box

2014-12-29 Thread Tristan Van Berkom
On Sun, 2014-12-28 at 12:53 -0500, Matthias Clasen wrote: I am a bit disappointed by the turn this discussion has taken - I was hoping people would try the code I pointed to and let me know what they think and point out problems (thanks to Tim for doing just that). Instead, I get arguments

Re: a new combo box

2014-12-27 Thread Tristan Van Berkom
On Sat, 2014-12-27 at 18:05 +0100, Sébastien Wilmet wrote: On Sun, Dec 28, 2014 at 12:50:24AM +0900, Tristan Van Berkom wrote: In any case, I think this misses the point I was trying to make, I think someone had to raise the obvious question: is it justified to bring in a whole new combo

Re: a new combo box

2014-12-27 Thread Tristan Van Berkom
On Sat, 2014-12-27 at 11:44 -0800, Christian Hergert wrote: On 12/27/2014 07:50 AM, Tristan Van Berkom wrote: In any case, I think this misses the point I was trying to make, I think someone had to raise the obvious question: is it justified to bring in a whole new combo API ? Or can we

Re: a new combo box

2014-12-27 Thread Tristan Van Berkom
On Sat, 2014-12-27 at 16:29 -0500, Matthias Clasen wrote: On Sat, Dec 27, 2014 at 12:59 PM, Tristan Van Berkom tris...@upstairslabs.com wrote: It's really not that bad, combobox is currently 6k lines of code which is really not much for all that it does, sure we could afford to do

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: Does gobject-introspection support the cross-compile?

2014-08-12 Thread Tristan Van Berkom
On Wed, 2014-08-13 at 09:09 +0800, Rongqing Li wrote: Hi: I want to compile gobject-introspection for arm cpu in x86 host, both are linux OS. The compilation failed since g-ir-compiler (compiled for arm) can not run on x86. Could you tell me if it supports the cross-compile, if

Re: sorry~~can GTK+ draw flow graph?

2014-08-01 Thread Tristan Van Berkom
On Tue, 2014-07-29 at 21:43 +0800, gpu wrote: hi everyone! I'm sorry to send mail here, but I got no respond at the app-list :( Hi, I think since everyone's at guadec the lists are slow... I have a question here. I want to realize some funtionality like the flow graph.And I want to know is

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: gtk_widget_set_size_request stopped working with GTK3

2014-07-24 Thread Tristan Van Berkom
Hi Mike, On Wed, Apr 16, 2014 at 11:25 PM, mike_s michael.u.santi...@gmail.com wrote: It's the same error I am experiencing when I am trying to make my ListView ctrl scrolled without using the ScrolledWindow. It works in GTK+2 but really not in GTK+3. What I was trying to do is to request

Re: GtkWidget:halign and GtkSizeGroup

2014-07-18 Thread Tristan van Berkom
Hi Murray, On 2014-07-17, at 5:25 PM, Murray Cumming murr...@murrayc.com wrote: I'm trying to replace a use of the deprecated GtkMisc:xalign property with the newer GtkWidget:halign property with some labels that are in a GtkSizeGroup. The (GTK_ALIGN_START) alignment doesn't seem to be having

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: some mistake in the GtkCellRenderer design

2014-02-10 Thread Tristan Van Berkom
On Sun, 2014-02-09 at 18:16 +, narcisse doudieu siewe wrote: Hello every body, I'm not a god designer but I have noticed some mistake with the GtkCellRenderer design. To illustrate myself, I take an example. Actually, I want to implement a custom GtkCellEditable which

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

2013-09-30 Thread Tristan Van Berkom
Hi Matthias, On Sun, 2013-09-29 at 22:28 -0400, Matthias Clasen wrote: I've pushed a flowbox branch, which adds a GtkFlowBox widget. It is a copy of the EggFlowBox widget that has been developed in the egg-list-box module for a while, which is in turn based on an earlier EggSpreadTable in

Re: Stock Items Deprecation

2013-08-20 Thread Tristan Van Berkom
I believe that this is exactly what GtkIconFactory is there for, it allows you to define named icons for various widget states including RTL/LTR. Thankfully GtkIconFactory != stock icons... but unfortunately it looks as though a deprecation of GtkIconFactory snuck in with the stock icon

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: Expand the child in the GtkHeaderBar

2013-07-05 Thread Tristan Van Berkom
On Fri, Jul 5, 2013 at 10:55 PM, Yosef Or Boczko yosef...@gmail.com wrote: Good afternoon! I wrote a program that uses in GtkHeaderBar [1]. In the GtkHeaderBar I put a buttons (GtkButton) and also entry (GtkEntry): entry-without-expand.png [2]: || |--- entry ---|

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: Stock Items Deprecation

2013-07-02 Thread Tristan Van Berkom
On Tue, Jul 2, 2013 at 10:41 PM, William Jon McCann william.jon.mcc...@gmail.com wrote: Hi, As some of you may have noticed we have recently deprecated Stock Items in master. Some details on this change may be found here:

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: Minimum height for minimum width - reprise

2013-06-19 Thread Tristan Van Berkom
On Wed, Jun 19, 2013 at 10:13 PM, Pietro Battiston m...@pietrobattiston.it wrote: Il giorno mer, 19/06/2013 alle 20.03 +0900, Tristan Van Berkom ha scritto: On Wed, Jun 19, 2013 at 6:19 PM, Pietro Battiston m...@pietrobattiston.it wrote: [...] This is, to my eyes, the clearest example

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

GtkIconSize/GtkIconFactory [was: Re: wip/hires-icons]

2013-05-17 Thread Tristan Van Berkom
[branching thread here] On Fri, May 17, 2013 at 8:20 PM, Alexander Larsson al...@redhat.com wrote: [...] This branch doesn't precisely reinvent the wheel, there's just a few API additions to current components to have this work as seamlessly as possible. As choosing an icon must be postponed

Re: Crashes with long words in strings passed to gtk_widget_set_tooltip_text()

2013-05-11 Thread Tristan Van Berkom
On Sat, May 11, 2013 at 8:56 PM, Fabian Keil freebsd-lis...@fabiankeil.de wrote: Fabian Keil freebsd-lis...@fabiankeil.de wrote: Emmanuel Thomas-Maurin manutm...@gmail.com wrote: On 04/21/2011 02:44 PM, Fabian Keil wrote: I haven't filed a bug report yet as it wasn't clear to me if

Re: CSS Transitions

2013-05-10 Thread Tristan Van Berkom
On Fri, May 10, 2013 at 7:05 PM, Allan Day allanp...@gmail.com wrote: Owen Taylor otay...@redhat.com wrote: I think you can quickly get into prohibitively heavy complexity here, which is why, presumably, that CSS doesn't try to to have the idea of start and end states. Indeed. Just out of

Re: capture changed signal for the cell of treeview

2013-05-04 Thread Tristan Van Berkom
On Sat, May 4, 2013 at 12:37 PM, yu wu vanii.wa...@gmail.com wrote: I am using the followed to renderer text in cells: renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes((local = char_to_utf8 (weight(kg/m))), renderer,

Re: which column cell is changed when row-changed is emitted

2013-05-04 Thread Tristan Van Berkom
On Sat, May 4, 2013 at 12:44 PM, yu wu vanii.wa...@gmail.com wrote: For the signal row-changed of GtkTreeModel, how can I know which column cell is changed. For example, I defined 10 renderers by `gtk_cell_renderer_text_new' which means 10 columns. When column 1 and column 3 in a row are

Re: capture changed signal for the cell of treeview

2013-05-04 Thread Tristan Van Berkom
at draw time. By the way, I don't know the difference between gtk-list and gtk-devel-list. Now I know it. Could you or someone tell me how to move this post to gtk-list? Don't worry about it, posts can't be moved, just use the other lists next time ;) 在 2013年5月4日星期六,Tristan Van Berkom 写道

Re: capture changed signal for the cell of treeview

2013-05-04 Thread tristan . van . berkom
, I don't know the difference between gtk-list and gtk-devel-list. Now I know it. Could you or someone tell me how to move this post to gtk-list? Don't worry about it, posts can't be moved, just use the other lists next time ;) 在 2013年5月4日星期六,Tristan Van Berkom 写道: On Sat, May 4, 2013 at 12

On regressions and carelessness

2013-04-27 Thread Tristan Van Berkom
after fixing it with this commit: commit b164df74506505ac0f4559744ad9b59b5ea57ebf Author: Tristan Van Berkom trista...@openismus.com Date: Sat Apr 20 17:52:16 2013 +0900 And all was well in the world again, labels wrapped and requested enough height inside their check buttons. Until

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: Composite GtkBuilder template

2013-04-18 Thread Tristan Van Berkom
On Wed, 2013-04-17 at 21:42 -0500, Federico Mena Quintero wrote: On Thu, 2013-04-11 at 17:49 -0500, Federico Mena Quintero wrote: I'll do something like this. First, revert the commit. Then, merge my branch. Doing a straight rebase is not trivial, as places-sidebar has gotten master

Re: Composite GtkBuilder template

2013-04-12 Thread Tristan Van Berkom
On Thu, 2013-04-11 at 17:49 -0500, Federico Mena Quintero wrote: On Thu, 2013-04-11 at 13:36 +0900, Tristan Van Berkom wrote: First, let me apologize for the rather harsh tone in my message yesterday. I had a big WTF moment when I saw how the composite templates patches played badly with my

Re: Composite GtkBuilder template

2013-04-10 Thread Tristan Van Berkom
On Wed, 2013-04-10 at 20:30 -0500, Federico Mena Quintero wrote: On Tue, 2013-04-02 at 17:59 +0900, Tristan Van Berkom wrote: And while it's a huge list of changes, any thorough peer reviews would be greatly appreciated of course. This work makes merging my places-sidebar branch

Re: Composite GtkBuilder template

2013-04-10 Thread Tristan Van Berkom
On Thu, 2013-04-11 at 13:20 +0900, Tristan Van Berkom wrote: On Wed, 2013-04-10 at 20:30 -0500, Federico Mena Quintero wrote: On Tue, 2013-04-02 at 17:59 +0900, Tristan Van Berkom wrote: And while it's a huge list of changes, any thorough peer reviews would be greatly appreciated

Re: Composite GtkBuilder template

2013-04-08 Thread Tristan Van Berkom
On Sun, 2013-04-07 at 23:50 -0400, Matthias Clasen wrote: I guess it's time for me to drop this for the day, I just dont know if I can afford to spend time on it tomorrow, looks like I'll be spending some long nights after hours on this... Here is a patch that seems to work ok. Mathias,

Re: Composite GtkBuilder template

2013-04-08 Thread Tristan Van Berkom
On Mon, 2013-04-08 at 07:30 -0400, Matthias Clasen wrote: Are we about ready to move forward with this ? The color editor still has a round knob, where it didn't use to. That's the only thing I still notice being different. I have just pushed a fix for this. I was unable to really

Re: Composite GtkBuilder template

2013-04-07 Thread Tristan Van Berkom
On Sat, 2013-04-06 at 23:59 -0400, Matthias Clasen wrote: Hey Tristan, thanks for sending this detailed status update. Here is some initial feedback after playing with the branch for a few minutes: 1. intltool - I don't like it, and really want to avoid adding a intltool dependency to

Re: Composite GtkBuilder template

2013-04-07 Thread Tristan Van Berkom
On Sat, 2013-04-06 at 23:59 -0400, Matthias Clasen wrote: Hey Tristan, Ok I've spent some hours perfecting this, I had not run the doc-shooter program before so vigorously but now all of the captures from master are identical to the ones in composite-templates-new. thanks for sending this

Re: Composite GtkBuilder template

2013-04-07 Thread Tristan Van Berkom
On Sun, 2013-04-07 at 10:13 -0400, Matthias Clasen wrote: On Sun, Apr 7, 2013 at 2:57 AM, Tristan Van Berkom trista...@openismus.com wrote: On Sat, 2013-04-06 at 23:59 -0400, Matthias Clasen wrote: I'm afraid that your efforts on writing an intltool-extract replacement are misplaced

Re: Composite GtkBuilder template

2013-04-07 Thread Tristan Van Berkom
On Sun, 2013-04-07 at 13:39 -0400, Matthias Clasen wrote: And just to complete that thought, here is how I think this should work: - Write some Makefile goo to use my utility to generate foo.ui.h from foo.ui - Add foo.ui.h to POTFILES.in The only slight downside is that putting generated

Composite GtkBuilder template

2013-04-02 Thread Tristan Van Berkom
I meant to address the list by the end of last week but some issues cropped proving that the work was not yet finished. I have been working closely with Benjamin, refining the API and discussing some of the finer points. This has been a huge effort that ate up my last two weeks full time work.

Re: Test Modules

2013-03-06 Thread Tristan Van Berkom
On Wed, 2013-03-06 at 11:56 +, John Emmas wrote: I recently built libglib (version 2) using MSVC. I noticed that there are several dozen test modules available (i.e. 'C' source modules) but it looks as if they all need to be built as individual apps. Does anyone think it would be a

Re: Test Modules

2013-03-06 Thread Tristan Van Berkom
On Wed, 2013-03-06 at 12:41 +, John Emmas wrote: On 6 Mar 2013, at 12:14, Tristan Van Berkom wrote: Is this question stemming from the fact that you got glib to compile using MSVC, where I suppose you are hacking the source tree severely and not using the autotools/makefiles at all

Re: Baseline alignment ideas

2013-02-27 Thread Tristan Van Berkom
On Wed, Feb 27, 2013 at 8:44 PM, Alexander Larsson al...@redhat.com wrote: On ons, 2013-02-27 at 17:47 +0900, Tristan wrote: Ah, I think I understand your question better now. Use a natural allocation process similar to gtk_distribute_natural_allocation():

Re: Function completion for GVariant maybe types?

2013-02-21 Thread Tristan Van Berkom
On Thu, Feb 21, 2013 at 7:05 PM, Markus Elfring markus.elfr...@web.de wrote: Until a couple of days ago I'd never even encountered GVariant so forgive me if I've misunderstood the concept - but from what you've written, it seems like you want to be able to map a nullable object to the state of

Re: bugzilla cleanup

2013-02-05 Thread Tristan Van Berkom
On Wed, Feb 6, 2013 at 9:24 AM, Matthias Clasen matthias.cla...@gmail.com wrote: On Tue, Feb 5, 2013 at 3:49 PM, Morten Welinder mort...@gnome.org wrote: Note, that there are other large parts of glib, such as gio, that have basically don't work on win32. And have five-year old patches in

Re: Problems with un-owned objects passed to closures in pygobject (gtk_cell_renderer_text_start_editing)

2013-02-04 Thread Tristan Van Berkom
On Tue, Feb 5, 2013 at 12:08 PM, Simon Feltman s.felt...@gmail.com wrote: I could easily be misunderstanding the internals, but at some point isn't a call to something like gtk_widget_set_parent on the children needed for widgets to ever be displayed or useful? (which sinks the children) One

Re: Problems with un-owned objects passed to closures in pygobject (gtk_cell_renderer_text_start_editing)

2013-02-03 Thread Tristan Van Berkom
, Tristan Van Berkom t...@gnome.org wrote: On Fri, Jan 18, 2013 at 5:49 AM, Giovanni Campagna scampa.giova...@gmail.com wrote: [...] I know that Python doesn't have a GC in the traditional sense, but you could still send finalization for GObject wrappers to a idle callback so there is no risk

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: Problems with un-owned objects passed to closures in pygobject (gtk_cell_renderer_text_start_editing)

2013-01-18 Thread Tristan Van Berkom
On Fri, Jan 18, 2013 at 5:49 AM, Giovanni Campagna scampa.giova...@gmail.com wrote: [...] I know that Python doesn't have a GC in the traditional sense, but you could still send finalization for GObject wrappers to a idle callback so there is no risk of finalizing objects that C code assumes

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.

  1   2   3   4   5   6   7   8   >