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: Editable SpinButton on a TreeView: detect *every* changes

2016-11-14 Thread pozzugno
Il 14/11/2016 18:19, Pozz Pozz ha scritto: I created with success a TreeView based on a ListStore. One column has a SpinButton (actually a GtkCellRendererSpin). Now I want to detect when the user *is* changing the value, i.e. every time he clicks on + or - buttons. If I connect the "edited"

Re: Sharing Gtk.Adjustment objects among several Gtk.SpinButton widgets

2016-11-14 Thread Emmanuele Bassi
Hi; On 14 November 2016 at 17:12, Pozz Pozz wrote: >> A GtkAdjustment is a "model", whereas the widgets using the adjustment >> are the "views". So, if you use the same GtkAdjustment instance, all >> widgets will share the same underlying state. This is by design. >> >> If

Editable SpinButton on a TreeView: detect *every* changes

2016-11-14 Thread Pozz Pozz
I created with success a TreeView based on a ListStore. One column has a SpinButton (actually a GtkCellRendererSpin). Now I want to detect when the user *is* changing the value, i.e. every time he clicks on + or - buttons. If I connect the "edited" signal, my callack will be called only when the

Re: Sharing Gtk.Adjustment objects among several Gtk.SpinButton widgets

2016-11-14 Thread Pozz Pozz
2016-11-14 16:39 GMT+01:00 Emmanuele Bassi : > Hi; > > On 14 November 2016 at 15:36, Pozz Pozz wrote: > > Is it possible to have a single Gtk.Adjustment for several Gtk.SpinButton > > widgets? I couldn't understand if the adjustment is only used by >

Re: Sharing Gtk.Adjustment objects among several Gtk.SpinButton widgets

2016-11-14 Thread Emmanuele Bassi
Hi; On 14 November 2016 at 15:36, Pozz Pozz wrote: > Is it possible to have a single Gtk.Adjustment for several Gtk.SpinButton > widgets? I couldn't understand if the adjustment is only used by SpinButton > to know the range (and some additional details, such as the page

Sharing Gtk.Adjustment objects among several Gtk.SpinButton widgets

2016-11-14 Thread Pozz Pozz
Is it possible to have a single Gtk.Adjustment for several Gtk.SpinButton widgets? I couldn't understand if the adjustment is only used by SpinButton to know the range (and some additional details, such as the page size), or the adjustment is used also for the value storage place. I tried to

Re: GtkEntry placeholder in GTK2

2016-11-14 Thread Colomban Wendling
Hi, Le 14/11/2016 à 14:30, Gabriele Greco a écrit : > I know GTK 3.2+ has a nice gtk_entry_set_placeholder_text() method, but I'm > wondering if there is some clever method to do something similar with GTK2, > I've not found anything googling around, but placeholder texts are a so > common

GtkEntry placeholder in GTK2

2016-11-14 Thread Gabriele Greco
Hello, I know GTK 3.2+ has a nice gtk_entry_set_placeholder_text() method, but I'm wondering if there is some clever method to do something similar with GTK2, I've not found anything googling around, but placeholder texts are a so common interface concept today that I doubt that someone has not

glade and compiled resources

2016-11-14 Thread iSage
So, i know i can compile my resources and glade .ui file and load it using builder. However, i have a problem with icons. Let's say a have a following structure: / window.ui pixmaps/ run-iso.png And an button in .ui with icon_name = run-iso Using gtk_icon_theme_add_resource_path i