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
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
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
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
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
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
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-&
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
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
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
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
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
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
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
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
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
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 "
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
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
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,
&
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
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-
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
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
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
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
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
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
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
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-
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
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
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
>>>>
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
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
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
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
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,
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
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
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
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
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
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
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
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
;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
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
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
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
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
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
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
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
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
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
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
___
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,
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
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
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
>
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
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
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
(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
> 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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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'
> 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
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 -
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
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
84 matches
Mail list logo