GResource + GtkImage + Glade

2012-12-29 Thread Joe Steeve
Hello all,

I am rolling all my resource files (builder xml files and images) into a
GResource, and linking it to my binary. I figured that glade does not
know about 'resources'. So, I unlinked my images from the glade file and
am load them manually by fetching from the resource.

Because of this, I have the following annoyances:
 1. I cannot see those images from the Glade designer any more
 2. I need to manually load all those images and assign them to the
widgets in code

Is this the right way of doing things? Or am I doing something wrong?

Joe

-- 
Joe Steeve
HiPro IT Solutions Private Limited
http://hipro.co.in/
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

bar with label and two buttons

2012-12-29 Thread rastersoft

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all:

I want to create a bar with two buttons and a label between, but I want
that both buttons have exactly the same width, no matter if one has a
large text and the other a shorter one. But also I don't want to fixate
the width, like using a grid would mandate, but want that the width will
be the minimum needed by the bigger button (I don't want to have
problems if a translation results in a very long text). Finally, the
label must be between both buttons, expanded, using the maximum
available space.

I created a picture with the idea, which is here:
http://picpaste.com/buttons.png

How can I do that?

Thanks.

- -- 
Nos leemos
 RASTER(Linux user #228804)
ras...@rastersoft.com  http://www.rastersoft.com

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlDffTwACgkQXEZvyfy1ha+jsQCgxDHu2vSSK/hTsyDngUtQ3KY8
01cAoN1j24LLlskD8J5cIdV9meG76kNJ
=kYq1
-END PGP SIGNATURE-

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: bar with label and two buttons

2012-12-29 Thread Lance Dillon




- Original Message -
> From: rastersoft 
> To: GTK App Devel 
> Cc: 
> Sent: Saturday, December 29, 2012 6:31 PM
> Subject: bar with label and two buttons
> 
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hi all:
> 
> I want to create a bar with two buttons and a label between, but I want
> that both buttons have exactly the same width, no matter if one has a
> large text and the other a shorter one. But also I don't want to fixate
> the width, like using a grid would mandate, but want that the width will
> be the minimum needed by the bigger button (I don't want to have
> problems if a translation results in a very long text). Finally, the
> label must be between both buttons, expanded, using the maximum
> available space.
> 
> I created a picture with the idea, which is here:
> http://picpaste.com/buttons.png
> 
> How can I do that?
> 
> Thanks.
> 
> - -- 
> Nos leemos
>                  RASTER    (Linux user #228804)
> ras...@rastersoft.com              http://www.rastersoft.com
> 

I think this might be what you want: 
http://developer.gnome.org/gtk3/stable/GtkSizeGroup.html
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list