Re: Gnome::UI::App force size?

eric liprandi <[email protected]> Wed, 28 Sep 2005 22:34:28 -0600
Newsgroups gmane.comp.gnome.gnomemm
Message-ID <[email protected]>
--===============1725162453==
Content-Type: multipart/alternative; 
	boundary="----=_Part_297_9915679.1127968468805"

------=_Part_297_9915679.1127968468805
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Thanks to Michael's answer to my other question I found out that the
following works great:
Gtk::Widget* pwidget =3D XmlGlade.get_widget("my_gnomeapp");
pwidget->get_windwo()->resize(width, height);

thanks again,

Eric.

On 9/22/05, Eric Liprandi <[email protected]> wrote:
>
> Hi,
>
> I am trying save the size of the window for my application (in GConf)
> and to force the size of the window to be restored to the same size next
> time it is launched.
>
> What is the proper technique to achieve this?
>
> I was under the impression that Gnome::UI::App was derived from
> Gtk::Window but I was apparently mistaken.
>
> Glade was used to design the interface and a get_widget() is used to get
> the widget representing the window (GnomeApp class in Glade).
>
> I am trying to stay in "pure" C++ as much as possible and not use
> GnomeApp*.
>
> Thanks in advance for the help.
>
> Eric.
>
>

------=_Part_297_9915679.1127968468805
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Thanks to Michael's answer to my other question I found out that the follow=
ing works great:<br>
Gtk::Widget* pwidget =3D XmlGlade.get_widget(&quot;my_gnomeapp&quot;);<br>
pwidget-&gt;get_windwo()-&gt;resize(width, height);<br>
<br>
thanks again,<br>
<br>
Eric.<br><br><div><span class=3D"gmail_quote">On 9/22/05, <b class=3D"gmail=
_sendername">Eric Liprandi</b> &lt;<a href=3D"mailto:[email protected]=
m">[email protected]</a>&gt; wrote:</span><blockquote class=3D"gmail_=
quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt =
0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I am trying save the size of the window for my application (in G=
Conf)<br>and to force the size of the window to be restored to the same siz=
e next<br>time it is launched.<br><br>What is the proper technique to achie=
ve this?
<br><br>I was under the impression that Gnome::UI::App was derived from<br>=
Gtk::Window but I was apparently mistaken.<br><br>Glade was used to design =
the interface and a get_widget() is used to get<br>the widget representing =
the window (GnomeApp class in Glade).
<br><br>I am trying to stay in &quot;pure&quot; C++ as much as possible and=
 not use<br>GnomeApp*.<br><br>Thanks in advance for the help.<br><br>Eric.<=
br><br></blockquote></div><br>

------=_Part_297_9915679.1127968468805--

--===============1725162453==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
gnomemm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnomemm-list

--===============1725162453==--