Re: GtkTable padding excessive?
| From: | karlbowden at gmail dot com | Date: | Mon, 16 Jan 2006 04:37:09 +0000 |
| Subject: | Re: GtkTable padding excessive? | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6545@lists.php.net to get a copy of this message | ||
Hehe. Newbie alert. I found it. I must have been doing something wrong
last time.
Here's a quick demo.
Still one thing though. Is is possible to change the default padding
for table children?
Regards,
Karlos
<?php
$win1 = new GtkWindow ();
$win1->connect ('destroy', 'quit');
$win1->add ($tb1 = new GtkTable ());
$tb1->attach (new GtkLabel ('Table\'d Window'), 0, 1, 0, 1);
$win1->show_all ();
$win2 = new GtkWindow ();
$win2->connect ('destroy', 'quit');
$win2->add (new GtkLabel ('UnTable\'d Window'));
$win2->show_all ();
$win3 = new GtkWindow ();
$win3->connect ('destroy', 'quit');
$win3->add ($tb2 = new GtkTable ());
$tb2->attach (new GtkLabel ('Adjusted Window'), 0, 1, 0, 1,
Gtk::EXPAND, Gtk::EXPAND, 0, 0);
$win3->show_all ();
function quit () {
Gtk::main_quit ();
}
Gtk::main ();
?>
On 1/16/06, Steph Fox <steph@zend.com> wrote:
> Karlos, hi,
>
> Best thing would be to put in a bug report via
> http://bugs.php.net/ and
> either paste your short-as-you-can-make-it test script there, or paste a
> link to said script there and host it somewhere else. Bug reports don't get
> lost in the deluge (and believe me, although things seem quiet on
> php-gtk-general, there is a deluge in other quarters).
>
> If we bogus it it means you made a mistake, but without seeing your code we
> can't even know that much.
>
> It's fairly likely you didn't make a mistake, in which case you're telling
> us about something you, as a user, need us to prioritise.
>
> Bit of a gamble, admittedly, but please do take it ;)
>
> - Steph
>
>
> ----- Original Message -----
> From: <karlbowden@gmail.com>
> To: <php-gtk-general@lists.php.net>
> Sent: Monday, January 16, 2006 2:48 AM
> Subject: [PHP-GTK] GtkTable padding excessive?
>
>
> I dont seem to be able to change the padding on GtkTable's.
> When desigined in glade, the tables looks nice and compact, but when
> created in php-gtk2 (not from the glade files), I cannot seem to
> reduce the internal padding on the table, even with just label widgets
> in the table.
>
> Anybody else noticed or found a solution to this? or should I just
> keep fidiling?
>
> Karlos,
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>