Create a hbox that you insert in the hierarchy between the page and the
button. When resizing the hbox will be resized, but not the button that is
inside it:

                :
        /* Notebook Page */
        GtkWidget *page;
        page = gtk_vbox_new(FALSE,0);
        GtkWidget *hbox = gtk_hbox_new(FALSE, 0);
        gtk_box_pack_start(GTK_BOX(page),hbox,FALSE,FALSE,0);

        GtkWidget *button = gtk_button_new_with_label("I'm a little
button");
        GtkWidget *label = gtk_label_new("and I'm a little label");
        GtkWidget *label2 = gtk_label_new
("How do you stop only the button from\n\
resizing when you move the grip handle \n\
on the horizontal pane");

        gtk_box_pack_start(GTK_BOX(hbox),button,FALSE,FALSE,0);
        gtk_box_pack_start(GTK_BOX(page),label,TRUE,TRUE,0);
        gtk_box_pack_start(GTK_BOX(page),label2,TRUE,TRUE,0);
        :

Regards,
Dov

On Mon, Dec 28, 2009 at 03:34, Vikram Noel Ambrose
<noel.ambr...@gmail.com>wrote:

> Sample program: http://en.pastebin.ca/1729026
>
> How do you stop *only* the button in my sample program, from resizing when
> you move the paned grip.
>
>
> Vik.
> _______________________________________________
> gtk-list mailing list
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to