Re: dialog window resize



hmm, the C version has the same behavior:

#include <gtk/gtk.h>

int main( int argc, char *argv[] )
{
        GtkWidget *dialog;

        gtk_init (&argc, &argv);

        dialog = gtk_dialog_new ();
        gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);
        gtk_window_set_default_size(GTK_WINDOW(dialog), 610, 400);
/*      gtk_window_set_resizable(GTK_WINDOW(dialog),0);*/
        gtk_widget_show  (dialog);

        gtk_main ();

        return 0;
}


Then how can I set the window size and remove the right from the UI user to resize it?
 

On Sun, Mar 6, 2011 at 9:26 AM, Attila bardi <attila bardi gmail com> wrote:
Hey,

my problem is I try to set the default window size for a dialog window and I don't want the user resize it.
But it is not working for me. If I set the resizable to false the default window size is not working anymore.
 
-------------------------
#!/usr/bin/perl -w
use Gtk2 qw/-init/;

my $window = Gtk2::Dialog->new;
$window->set_position('GTK_WIN_POS_CENTER');
$window->set_default_size(610, 450);
# $window->set_resizable(0);


$window->show_all;

Gtk2->main;

0;




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]