gtkbuilder.*.xml

2017-05-21 Thread Matt Postiff
I have a bunch of files called gtkbuilder.*.xml in my gtk2 program. I am having trouble on msys2 to use gettext to extract strings from them for i18n. xgettext says that it doesn't recognize the extension xml. Are these files named in a non-standard way? Should they be rather c

Re: Help with GtkBuilder memory leak

2016-06-02 Thread Giovanni Panozzo
Yes, various libraries in the stack perform one-off allocations; these are *NOT* leaks, since they do not grow unbounded and are collected by the OS at the end of the process. Yes! I modified builderleak.c allocating 1000 times GtkBuilder and deallocating it just after. The leak reported by

Re: Help with GtkBuilder memory leak

2016-06-02 Thread Emmanuele Bassi
Hi; On 2 June 2016 at 16:45, Giovanni Panozzo wrote: > I tryied to unref it, but memory leaks are still here. Almost all are > indicating something allocated inside libfontconfig and never freed :( Yes, various libraries in the stack perform one-off allocations; these are *NOT* leaks, since the

Re: Help with GtkBuilder memory leak

2016-06-02 Thread Giovanni Panozzo
Thank you for answering. Use Valgrind, instead. I will try. g_object_unref (b); It's good to know that I can destroy the GtkBuilder object early in the application. I didn't know it. I tryied to unref it, but memory leaks are still here. Almost all are indicating

Re: Help with GtkBuilder memory leak

2016-06-02 Thread Emmanuele Bassi
vate (GtkApplication* app, > gpointer user_data) > { > GtkBuilder* b; > b = gtk_builder_new_from_file("builderleak.glade"); > w = GTK_APPLICATION_WINDOW(gtk_builder_get_object(b, "mainwin")); > g_object_set(w, "app

Help with GtkBuilder memory leak

2016-06-02 Thread Giovanni Panozzo
ow *w; static void activate (GtkApplication* app, gpointeruser_data) { GtkBuilder* b; b = gtk_builder_new_from_file("builderleak.glade"); w = GTK_APPLICATION_WINDOW(gtk_builder_get_object(b, "mainwin")); g_object_set(w, "applicat

Re: Get a list of object *names* from GtkBuilder

2015-11-26 Thread Daniel Kasak
bal variable to store the names of GtkPaned widgets: --- my @all_gtkPaned_names; --- Then just after I've generated a window from a gtkBuilder file, I go: @all_GtkPaned_names = (); if ( $window->{options}->{builder_path} ) { my $xml_parser = XML::Parser-&

Re: Get a list of object *names* from GtkBuilder

2015-11-17 Thread Daniel Kasak
s ( ie by having special code per widget ), but being able to do it generically as above would be a far better solution. Thoughts? Dan On Tue, Nov 17, 2015 at 4:57 AM, Emmanuele Bassi wrote: > Hi; > > On 16 November 2015 at 02:26, Daniel Kasak wrote: >> Greetings a

Re: Get a list of object *names* from GtkBuilder

2015-11-16 Thread Emmanuele Bassi
Hi; On 16 November 2015 at 02:26, Daniel Kasak wrote: > Greetings all. > > I'd like to get a list of object names from a GtkBuilder object ( I'm > using Perl ). I know about > https://developer.gnome.org/gtk3/stable/GtkBuilder.html#gtk-builder-get-objects > - which re

Re: Get a list of object *names* from GtkBuilder

2015-11-15 Thread Tadej Borovšak
Hi. Dne 16.11.2015 (pon) ob 13:26 +1100 je Daniel Kasak napisal(a): > Greetings all. > > I'd like to get a list of object names from a GtkBuilder object ( I'm > using Perl ). I know about > https://developer.gnome.org/gtk3/stable/GtkBuilder.html#gtk-builder-g > et

Get a list of object *names* from GtkBuilder

2015-11-15 Thread Daniel Kasak
Greetings all. I'd like to get a list of object names from a GtkBuilder object ( I'm using Perl ). I know about https://developer.gnome.org/gtk3/stable/GtkBuilder.html#gtk-builder-get-objects - which returns a list of objects, but I really need the names. Is it poss

Re: Template Widgets inside another GtkBuilder file

2015-10-07 Thread Victor Aurélio Santos
So the really question becomes, how to get `g_type_ensure` generated in output code when subclassing Widgets in Vala ? 2015-10-05 17:54 GMT-03:00 Victor Aurélio Santos : > Emmanuele, > >> In order to do that, you should use `g_type_ensure()` inside the > instance initialization function of the par

Re: Template Widgets inside another GtkBuilder file

2015-10-05 Thread Victor Aurélio Santos
Emmanuele, > In order to do that, you should use `g_type_ensure()` inside the instance initialization function of the parent's widget class Since using Vala, from what I can see in case of using [GtkTemplate] the g_type_ensure is generated, but when just subclassing a GtkWidget it doesn't exists

Re: Template Widgets inside another GtkBuilder file

2015-10-04 Thread Emmanuele Bassi
Hi; On 3 October 2015 at 02:14, 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

Re: Template Widgets inside another GtkBuilder file

2015-10-04 Thread Victor Aurélio Santos
her it is a > standard, which is at least enforced in any code written in the last decade > or so by way of the G_DEFINE_TYPE() macros (vala generated types will also > comply with this standard). So, if you have a type which is named FooBar, > and it's low level GType accessor is no

Re: Template Widgets inside another GtkBuilder file

2015-10-04 Thread Tristan Van Berkom
he type which is at fault for not complying with this. Granted, one can argument that documentation in this area is weak. Any other methods provided in GtkBuilder (such as overridable get_type_from_name() virtual methods) are specifically targeted at language bindings which need to resolve th

Template Widgets inside another GtkBuilder file

2015-10-02 Thread Victor Aurélio Santos
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 I've asked on SO[1] and got only one answer. I stick at "

Re: GtkBuilder property binding syntax

2014-06-20 Thread Victor A. Santos
Thanks for help. I'll write the binding in the code, maybe when Gtk releases 3.14 I migrate to binding in .ui. Thanks again :) On Fri, 2014-06-20 at 19:28 +0100, Phillip Wood wrote: > On 20/06/14 17:04, Emmanuele Bassi wrote: > > > > hi; > > > > that's

Re: GtkBuilder property binding syntax

2014-06-20 Thread Phillip Wood
On 20/06/14 17:04, Emmanuele Bassi wrote: > > hi; > > that's not entirely correct: GtkBuilder now allows binding properties > directly in the XML: > >> It is also possible to bind a property value to another object's property >> value using >&g

Re: GtkBuilder property binding syntax

2014-06-20 Thread Emmanuele Bassi
hi; that's not entirely correct: GtkBuilder now allows binding properties directly in the XML: > It is also possible to bind a property value to another object's property > value using > the attributes "bind-source" to specify the source object of the binding, &

Re: GtkBuilder property binding syntax

2014-06-20 Thread Phillip Wood
y "label" to have the value "cross_low_adj" then the syntax is cross_low_adj If you want the property to have the value in the variable cross_low_adj then you can't do that with GtkBuilder, you need to write some code to assign the property in your program. Best Wishes

GtkBuilder property binding syntax

2014-06-20 Thread Victor A. Santos
Which is the syntax for property binding in UI definition files ? I've tried: but: :3:3535 'bind-source' is not a valid attribute of Thanks ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-

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 ex

When to free GtkBuilder

2014-04-18 Thread Tristian Celestin
Is it necessary to keep a GtkBuilder object around once I've obtained references to relevant widgets and connected the widgets to handlers? Lots of code I've seen doesn't free the builder after it's been instantiated, such as in this example: https://github.com/chergert/cus

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

Sorting a TreeView with Glade/GtkBuilder

2014-01-09 Thread Craig
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 column and I want to sort by the toggle column. Any sugge

GtkBuilder causing memory leaks?

2013-06-11 Thread dE
The following code spawns a window -- if (connect_build_object != NULL) { g_object_unref (G_OBJECT ( connect_build_object )); object = NULL; } connect_build_object = gtk_builder_new(); gtk_builder_add_from_file ( connect_build_object, "main_window.glade", NULL ); gtk_builder

Re: duplicating GtkBuilder created widget objects

2012-12-07 Thread Joe Steeve
I decided to construct a new GtkBuilder every time, and destroy it. It works for me. My xml files are not that big anyway. On Tue, 2012-12-04 at 01:33 +0900, Tristan Van Berkom wrote: > Probably you want to use GResource to store your builder > xml (or const gchar* memory) instead of scra

Re: duplicating GtkBuilder created widget objects

2012-12-03 Thread Tristan Van Berkom
add_objects_from_file, wont there be a > name clash of widgets from the new file and the ones already there? > > I am now using multiple GtkBuilder objects. I moved win-b into a > separate glade file and load it every time I need a new window. Is there > a better approach? Th

Re: duplicating GtkBuilder created widget objects

2012-12-03 Thread Giuseppe Penone
click > on the button should bring a win-b. There can be more than one win-b at > the same time. If I do Builder::add_objects_from_file, wont there be a > name clash of widgets from the new file and the ones already there? > > I am now using multiple GtkBuilder objects. I moved win-

Re: duplicating GtkBuilder created widget objects

2012-12-02 Thread Joe Steeve
lready there? I am now using multiple GtkBuilder objects. I moved win-b into a separate glade file and load it every time I need a new window. Is there a better approach? -- Joe Steeve HiPro IT Solutions Private Limited http://hipro.co.in/ ___ gtk-app

duplicating GtkBuilder created widget objects

2012-12-01 Thread Joe Steeve
Hello All, I have a GtkBuilder xml created using Glade. I have a top-level window in it named "act-window". I need to create multiple "act-window" objects at the same time. How do I do this? Regards, Joe -- Joe Steeve HiPro IT Solutions Private Limite

Re: GtkBuilder bugs

2011-09-05 Thread Bernhard Schuster
rkom 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 the widget, the >>>>

Re: GtkBuilder bugs

2011-09-05 Thread Tristan Van Berkom
ed in Glade. >>>> >>>> You can remove the line that says n-rows safely fwiw >>> >>> I don't think that an extra property would break the widget, the >>> warning should be harmless. >>> >> >> Anything that GtkBuilder encounter

Re: GtkBuilder bugs

2011-09-05 Thread Michal Suchanek
rows safely fwiw >> >> I don't think that an extra property would break the widget, the >> warning should be harmless. >> > > Anything that GtkBuilder encounters that is unrecognized (unrecognized > xml tags, properties and even unknown/inexistant GObject proper

Re: GtkBuilder bugs

2011-09-05 Thread Tristan Van Berkom
break the widget, the > warning should be harmless. > Anything that GtkBuilder encounters that is unrecognized (unrecognized xml tags, properties and even unknown/inexistant GObject properties) cause GtkBuilder to either abort or fail to parse. >> >> On Sun, Sep 4, 2011 at 1:41

Re: GtkBuilder bugs

2011-09-05 Thread Michal Suchanek
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 break the widget, the warning should be harmless. > > On Sun, Sep 4, 2011 at 1:41 AM, Bernhard Sch

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,

GtkBuilder bugs

2011-09-03 Thread Bernhard Schuster
I am using a gtk-builder file for my application, which uses a Grid widget for layouting. When I run the application, I read this: Gtk-WARNING **: Unknown property: GtkGrid.n-rows and the grid is not shown (nor its contents) Thanks for any tips Regards Bernhard Schuster

Re: GtkBuilder

2011-03-14 Thread David King
On 2011-03-13 16:23, Craig Bakalian wrote: Hi, I am slowly moving my application to gtk+-3.0. The biggest step is moving away from GladeXML to GtkBuilder. The casting is hard work. But, it appears that gtk_builder_connect_signals isn't connecting signals from my GtkBuilder file. What

GtkBuilder

2011-03-13 Thread Craig Bakalian
Hi, I am slowly moving my application to gtk+-3.0. The biggest step is moving away from GladeXML to GtkBuilder. The casting is hard work. But, it appears that gtk_builder_connect_signals isn't connecting signals from my GtkBuilder file. What is up with this? Do I have t

Re: gtkbuilder and combobox

2011-02-18 Thread Alexander Nagel
Am Fri, 18 Feb 2011 23:59:21 +0100 schrieb Alexander Nagel : > Hi, > > i've created a GUI with Glade and saved it as a gtkbuilder file. There > is also a combobox with a liststore as the desired model. I have > filled the liststore with column type 'gcharray' and

gtkbuilder and combobox

2011-02-18 Thread Alexander Nagel
Hi, i've created a GUI with Glade and saved it as a gtkbuilder file. There is also a combobox with a liststore as the desired model. I have filled the liststore with column type 'gcharray' and filled it with data. But the combobox is empty. What did i miss? regards Alex -- Al

Re: GtkBuilder issue?

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

GtkBuilder issue?

2010-09-28 Thread Lance Dillon
I'm trying to add gtkbuilder support to pike (pike.roxen.com). In loading a glade3 file, it says Invalid Object 'blah', unless I create an instance of the object first. I narrowed it down to (in gtkbuilder.c): static GType gtk_builder_real_get_type_from_name (GtkBu

GtkBuilder + GtkUIManager and connect_proxy signal.

2010-06-18 Thread Alessio Giovanni Baroni
Hello, I am writing an application using an XML file for defining the interface, with GtkBuilder + GtkUIManager. The most important parts of XML file are: _File

Re: Bug inside GtkBuilder w/ GtkAdjustment

2010-02-28 Thread Matteo Landi
;foo').get_value() >> >> The output is 0.0 and not 10 as espected. Is this something already known? > > This is a known problem and I think it is already fixed in git master. > Basically, I boils down to the fact that properties need to be > specified in right orde

Re: Bug inside GtkBuilder w/ GtkAdjustment

2010-02-28 Thread Tadej Borovšak
builder = gtk.Builder() > builder.add_from_string(str_gui) > print builder.get_object('foo').get_value() > > The output is 0.0 and not 10 as espected. Is this something already known? This is a known problem and I think it is already fixed in git master. Basically, I boils down to t

Bug inside GtkBuilder w/ GtkAdjustment

2010-02-28 Thread Matteo Landi
Today working with glade, I noticed a strange behaviour while working with GtkAdjustment. import gtk str_gui = """ 10 1 100 1 """ builder = gtk.Builder() builder.add_from_string(str_gui) print builder.get_object('foo').get_value() The output is 0.0 and not 10 as e

gtkbuilder and spinbutton

2009-09-03 Thread ROBERTO FORTUNATO
I use Glade 3 to create my interface. I have a problem with gtkspinbutton and gtkbuilder: gtkspinbutton accepts step_increment, page_increment, lower, upper but not the default value. Here an example of glade file: 100 0.1 1000 0.1 10 Can someone help me? Thanks in

Re: GtkBuilder and GtkHScale

2009-07-10 Thread Matteo Landi
er than the needed one by 10 units? (if i need the upper bound to >> be 10, i need to set it to 20). I tought about a problem of glade, but the >> generated glade file contains the value used in the gui. I imagine it should >> be >> a problem of gtkbuilder. What do you think a

Re: GtkBuilder and GtkHScale

2009-07-02 Thread Tristan Van Berkom
er than the needed one by 10 units? (if i need the upper bound to >> be 10, i need to set it to 20). I tought about a problem of glade, but the >> generated glade file contains the value used in the gui. I imagine it should >> be >> a problem of gtkbuilder. What do you think a

Re: GtkBuilder and GtkHScale

2009-07-02 Thread Tadej Borovšak
it to 20). I tought about a problem of glade, but the > generated glade file contains the value used in the gui. I imagine it should > be > a problem of gtkbuilder. What do you think about this? My guess would be that you forgot to set page size property of scale to 0. Default page size

GtkBuilder and GtkHScale

2009-07-02 Thread Matteo Landi
oblem of glade, but the generated glade file contains the value used in the gui. I imagine it should be a problem of gtkbuilder. What do you think about this? Thanks in advance -- M@ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

RE: GtkDialog created from GtkBuilder (glade 3) isn't returning agtk.ResponseType

2009-04-22 Thread Ethan Baldridge
Baldridge Sent: Wednesday, April 22, 2009 4:30 PM To: gtk-app-devel-list@gnome.org Subject: GtkDialog created from GtkBuilder (glade 3) isn't returning agtk.ResponseType I can't figure out what I'm doing wrong. I'm trying to make a login dialog - I created it in Glade-3

GtkDialog created from GtkBuilder (glade 3) isn't returning a gtk.ResponseType

2009-04-22 Thread Ethan Baldridge
I can't figure out what I'm doing wrong. I'm trying to make a login dialog - I created it in Glade-3 making sure to use a GtkDialog template. But the result is always 0, which isn't in the ResponseType enum at all. def login(self): self.builder.add_from_file("transmission.gl

Re: Porting UIs to GtkBuilder

2009-04-15 Thread Zeeshan Ali (Khattak)
al only in libglade format and referenced (by object > type property) in GtkBuilder format. That is gone too now with a fresh conversion using glade3 so I am afraid, we might never find out. :) Thanks again. -- Regards, Zeeshan Ali (Khattak) FSF member#5124 ___

Re: Porting UIs to GtkBuilder

2009-04-15 Thread Tristan Van Berkom
I am extra curious about how you ended up with an internal "image" in a GtkImageMenuItem (if I'm guessing your Glade file correctly), those are supposed to be internal only in libglade format and referenced (by object type property) in GtkBuilder format. Cheers,

Re: Porting UIs to GtkBuilder

2009-04-15 Thread Zeeshan Ali (Khattak)
my UIs from >> libglade usage to GtkBuilder. So following the guidelines on this >> page: >> >> http://library.gnome.org/devel/gtk/stable/gtk-migrating-GtkBuilder.html >> >>   I tried to do so: >> http://gitorious.org/projects/gupnp-tools/repos/mainl

Re: Porting UIs to GtkBuilder

2009-04-15 Thread Ardhan Madras
indow". save and try to convert it again... working for me ;p I noticed another issues in GtkBuilder, when i grab a widget from a converted xml file with GtkBuilder, then set the widget property for example to set it's sensitive: gtk_widget_set_sensitive().. i got GTK_IS_WIDGET(widget) c

Re: Porting UIs to GtkBuilder

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

Porting UIs to GtkBuilder

2009-04-14 Thread Zeeshan Ali (Khattak)
Hi, Reading through planet gnome and related mailing-lists recently, I got the impression that this would be a good time to port my UIs from libglade usage to GtkBuilder. So following the guidelines on this page: http://library.gnome.org/devel/gtk/stable/gtk-migrating-GtkBuilder.html I

Re: Problem with gtkbuilder & mingw cross (not the signal problem)

2009-03-20 Thread Michael Torrie
John Stebbins wrote: > Tor Lillqvist wrote: >> (Adding gtk-app-devel-list back as Cc. Please let's keep this >> discussion on the list.) >> > Oops, didn't notice that reply went direct to you instead of to the list. >> Why make it harder for yourself, why not use a shared library (dll) >> build

Re: Problem with gtkbuilder & mingw cross (not the signal problem)

2009-03-17 Thread John Stebbins
Tor Lillqvist wrote: (Adding gtk-app-devel-list back as Cc. Please let's keep this discussion on the list.) Oops, didn't notice that reply went direct to you instead of to the list. Why make it harder for yourself, why not use a shared library (dll) build of gtk+ like everyone else? --tml

Re: Problem with gtkbuilder & mingw cross (not the signal problem)

2009-03-17 Thread Tor Lillqvist
(Adding gtk-app-devel-list back as Cc. Please let's keep this discussion on the list.) > I'm statically linking libgtk-win32-2.0.a.  That cross development > environment I pointed out creates only static libraries for everything. I'll > bet it has something to do with that.  Is using the dll requi

Re: Problem with gtkbuilder & mingw cross (not the signal problem)

2009-03-16 Thread Tor Lillqvist
> I did some sleuthing, and discovered > that g_module_symbol() fails to find the symbol "gtk_adjustment_get_type". Sorry, I have no idea why that would happen. gtk_adjustment_get_type is exported from the libgtk DLL (libgtk-win32-2.0-0.dll), just like all the other functions. You will have to dig

Problem with gtkbuilder & mingw cross (not the signal problem)

2009-03-16 Thread John Stebbins
lder file. nm shows that the symbol is in the binary. Note that I can successfully lookup my callback functions using g_module_symbol(). So it just has something to do with exporting those symbols gtkbuilder relies on for instantiating objects. Any ideas? example compile line:

Freeing menus added at runtime in a GtkBuilder project

2009-02-03 Thread Sean
Hi all, I'm building an application using GtkBuilder and I'd like to add some menu options at runtime--for plugins, etc. I'd just like to ensure I'm cleaning everything up properly since this is my first shot at doing any major GTK+ code. Here's a slim example of w

Re: many buttons, one handler with gtkbuilder

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

Re: many buttons, one handler with gtkbuilder

2009-01-21 Thread Peter F. Patel-Schneider
initialize the user-data property to a pointer to a string or integer using glade/gtkbuilder would be very useful. Its on my long long todo list, if you want to try your hand at it, I could tell you exactly what has to be done in GtkBuilder and in Glade and coach you through getting your patches

Re: many buttons, one handler with gtkbuilder

2009-01-20 Thread Tristan Van Berkom
user-data property > to a pointer to a string or integer using glade/gtkbuilder would be very > useful. Its on my long long todo list, if you want to try your hand at it, I could tell you exactly what has to be done in GtkBuilder and in Glade and coach you through getting your patches reviewed corr

Re: many buttons, one handler with gtkbuilder

2009-01-19 Thread Tristan Van Berkom
t; > It seems to me that the easiest way to do this is to have "user-data" on > each button widget that differentiates between the different buttons. > However, I can't figure out how to do this easily, even when > post-processing the .ui file. > > Does anyone know how t

many buttons, one handler with gtkbuilder

2009-01-19 Thread Peter F. Patel-Schneider
h button widget that differentiates between the different buttons. However, I can't figure out how to do this easily, even when post-processing the .ui file. Does anyone know how to get gtkbuilder (and/or glade) to put such differentiating data into button widgets? It seems like such an obviou

Re: gtkbuilder problem

2008-11-28 Thread Tristan Van Berkom
On Tue, Nov 25, 2008 at 10:06 PM, Vasiliy G Tolstov <[EMAIL PROTECTED]> wrote: > I'm using glade-3 (from trunk) and gtk+2.14.5 > In glade-3 i'm create sample menu with some items. > But then i'm run main program and gtk_builder_add_from_file i recieve > this error Heh, well, trunk is not very stab

Re: gtkbuilder problem

2008-11-25 Thread Tristan Van Berkom
Gah, last mail missed the list as usual... On Tue, Nov 25, 2008 at 10:06 PM, Vasiliy G Tolstov <[EMAIL PROTECTED]> wrote: > I'm using glade-3 (from trunk) and gtk+2.14.5 > In glade-3 i'm create sample menu with some items. > But then i'm run main program and gtk_builder_add_from_file i recieve > t

gtkbuilder problem

2008-11-25 Thread Vasiliy G Tolstov
I'm using glade-3 (from trunk) and gtk+2.14.5 In glade-3 i'm create sample menu with some items. But then i'm run main program and gtk_builder_add_from_file i recieve this error Gtk-WARNING **: Attempting to add a widget with type GtkMenu to a container of type GtkMenuItem, but the widget is alrea

Custom widgets with GtkBuilder

2008-07-21 Thread Braden McDaniel
I'm migrating some code from libglade to GtkBuilder. I have inherited GtkFileChooserDialog in order to perform some setup when creating it (i.e., set title, set the default response, and add some filters). With libglade, I was performing this logic in a _new function; I delegated to the

Re: GtkBuilder and popup menus

2008-05-27 Thread Micah Carrick
ile with GtkBuilder? I can't set "id" on > the popup... do I have to get the GtkUIManager and get the popup menu > widget from that? > > ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

GtkBuilder and popup menus

2008-05-26 Thread Micah Carrick
How do I use a in a UI file with GtkBuilder? I can't set "id" on the popup... do I have to get the GtkUIManager and get the popup menu widget from that? -- - Micah Carrick Developer - http://www.micahcarrick.com GTK+ Forums - http://ww

Re: GtkBuilder, win32 & signals

2008-02-13 Thread Gabriele Greco
ble" documentation in gtk.org and maybe someone else has interest on this topic. Nice addon this GtkBuilder BTW :) I think I'll try to move on the development of our applications from the built in code generation to this, the fact that doesn'

Re: GtkBuilder, win32 & signals

2008-02-13 Thread Tor Lillqvist
> I'm wondering if the gmodule "inspecting" feature to link the handlers > is broken in win32 or if I have to add some more flag I quote the documentation for gtk_builder_connect_signals() in trunk: * When compiling applications for Windows, you must declare signal callbacks * with G_MODULE_E

GtkBuilder, win32 & signals

2008-02-13 Thread Gabriele Greco
I'm doing some tests with GtkBuilder and I've built a simple program that open a window with a pair of buttons with a signal for each button and it works perfectly in linux. I've tried to crosscompile it to win32 with this command line: i586-mingw32msvc-gcc -o main.exe main.c -

Re: Reparsing with GtkBuilder

2007-12-18 Thread Johan Dahlin
amol wrote: > Hi > If i used gtk_builder_add_from_string to parse some string for builder > which already has some content then application terminates with > following message > >Gtk-ERROR **: file gtkbuilder.c: line 567 > (apply_delayed_properties): assertion failed: (object != NULL) > if

Reparsing with GtkBuilder

2007-12-17 Thread amol
Hi If i used gtk_builder_add_from_string to parse some string for builder which already has some content then application terminates with following message >Gtk-ERROR **: file gtkbuilder.c: line 567 (apply_delayed_properties): assertion failed: (object != NULL) if builder had already set some