Re: Can't stop button from expanding
- From: Dov Grobgeld <dov grobgeld gmail com>
- To: Vikram Noel Ambrose <noel ambrose gmail com>
- Cc: gtk-list gnome org
- Subject: Re: Can't stop button from expanding
- Date: Mon, 28 Dec 2009 06:07:17 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]