scale = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 100, 1, 10, 10)));
scale = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 110, 1, 10, 10)));
create_dialog1 (void){  GtkWidget *dialog1;  GtkWidget *dialog_vbox1;  GtkWidget *vbox1;  GtkWidget *hbuttonbox1;  GtkWidget *buttonCancel;  GtkWidget *buttonApply;  GtkWidget *buttonOk;  GtkWidget *hbuttonbox2;  GtkWidget *buttonAutocrop;  GtkWidget *buttonReset;  GtkWidget *alignment1;  GtkWidget *hbox1;  GtkWidget *image1;  GtkWidget *label1;  GtkWidget *table1;  GtkWidget *label2;  GtkWidget *label3;  GtkWidget *label4;  GtkWidget *label5;  GtkObject *spinbuttonLeft_adj;  GtkWidget *spinbuttonLeft;  GtkObject *spinbuttonTop_adj;  GtkWidget *spinbuttonTop;  GtkObject *spinbuttonBottom_adj;  GtkWidget *spinbuttonBottom;  GtkObject *spinbuttonRight_adj;  GtkWidget *spinbuttonRight;  GtkWidget *scale;  GtkWidget *drawingarea1;  GtkWidget *dialog_action_area1;  dialog1 = gtk_dialog_new ();  gtk_window_set_title (GTK_WINDOW (dialog1), _("Crop Settings"));  dialog_vbox1 = GTK_DIALOG (dialog1)->vbox;  gtk_widget_show (dialog_vbox1);  vbox1 = gtk_vbox_new (FALSE, 0);  gtk_widget_show (vbox1);  gtk_box_pack_start (GTK_BOX (dialog_vbox1), vbox1, TRUE, TRUE, 0);  hbuttonbox1 = gtk_hbutton_box_new ();  gtk_widget_show (hbuttonbox1);  gtk_box_pack_start (GTK_BOX (vbox1), hbuttonbox1, FALSE, TRUE, 0);  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox1), GTK_BUTTONBOX_END);  buttonCancel = gtk_button_new_from_stock ("gtk-cancel");  gtk_widget_show (buttonCancel);  gtk_container_add (GTK_CONTAINER (hbuttonbox1), buttonCancel);  GTK_WIDGET_SET_FLAGS (buttonCancel, GTK_CAN_DEFAULT);  buttonApply = gtk_button_new_from_stock ("gtk-apply");  gtk_widget_show (buttonApply);  gtk_container_add (GTK_CONTAINER (hbuttonbox1), buttonApply);  GTK_WIDGET_SET_FLAGS (buttonApply, GTK_CAN_DEFAULT);  buttonOk = gtk_button_new_from_stock ("gtk-ok");  gtk_widget_show (buttonOk);  gtk_container_add (GTK_CONTAINER (hbuttonbox1), buttonOk);  GTK_WIDGET_SET_FLAGS (buttonOk, GTK_CAN_DEFAULT);  hbuttonbox2 = gtk_hbutton_box_new ();  gtk_widget_show (hbuttonbox2);  gtk_box_pack_start (GTK_BOX (vbox1), hbuttonbox2, FALSE, TRUE, 0);  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox2), GTK_BUTTONBOX_START);  buttonAutocrop = gtk_button_new_with_mnemonic (_("AutoCrop"));  gtk_widget_show (buttonAutocrop);  gtk_container_add (GTK_CONTAINER (hbuttonbox2), buttonAutocrop);  GTK_WIDGET_SET_FLAGS (buttonAutocrop, GTK_CAN_DEFAULT);  buttonReset = gtk_button_new ();  gtk_widget_show (buttonReset);  gtk_container_add (GTK_CONTAINER (hbuttonbox2), buttonReset);  GTK_WIDGET_SET_FLAGS (buttonReset, GTK_CAN_DEFAULT);  alignment1 = gtk_alignment_new (0.5, 0.5, 0, 0);  gtk_widget_show (alignment1);  gtk_container_add (GTK_CONTAINER (buttonReset), alignment1);  hbox1 = gtk_hbox_new (FALSE, 2);  gtk_widget_show (hbox1);  gtk_container_add (GTK_CONTAINER (alignment1), hbox1);  image1 = gtk_image_new_from_stock ("gtk-undo", GTK_ICON_SIZE_BUTTON);  gtk_widget_show (image1);  gtk_box_pack_start (GTK_BOX (hbox1), image1, FALSE, FALSE, 0);  label1 = gtk_label_new_with_mnemonic (_("Reset"));  gtk_widget_show (label1);  gtk_box_pack_start (GTK_BOX (hbox1), label1, FALSE, FALSE, 0);  gtk_label_set_justify (GTK_LABEL (label1), GTK_JUSTIFY_LEFT);  table1 = gtk_table_new (2, 4, FALSE);  gtk_widget_show (table1);  gtk_box_pack_start (GTK_BOX (vbox1), table1, FALSE, TRUE, 0);  label2 = gtk_label_new (_("Crop Left :"));  gtk_widget_show (label2);  gtk_table_attach (GTK_TABLE (table1), label2, 0, 1, 0, 1,                    (GtkAttachOptions) (GTK_FILL),                    (GtkAttachOptions) (0), 0, 0);  gtk_label_set_justify (GTK_LABEL (label2), GTK_JUSTIFY_FILL);  gtk_misc_set_alignment (GTK_MISC (label2), 0, 0.5);  label3 = gtk_label_new (_("Crop Top:"));  gtk_widget_show (label3);  gtk_table_attach (GTK_TABLE (table1), label3, 0, 1, 1, 2,                    (GtkAttachOptions) (GTK_FILL),                    (GtkAttachOptions) (0), 0, 0);  gtk_label_set_justify (GTK_LABEL (label3), GTK_JUSTIFY_FILL);  gtk_misc_set_alignment (GTK_MISC (label3), 0, 0.5);  label4 = gtk_label_new (_("Crop Right:"));  gtk_widget_show (label4);  gtk_table_attach (GTK_TABLE (table1), label4, 2, 3, 0, 1,                    (GtkAttachOptions) (GTK_FILL),                    (GtkAttachOptions) (0), 0, 0);  gtk_label_set_justify (GTK_LABEL (label4), GTK_JUSTIFY_FILL);  gtk_misc_set_alignment (GTK_MISC (label4), 0, 0.5);  label5 = gtk_label_new (_("Crop Bottom:"));  gtk_widget_show (label5);  gtk_table_attach (GTK_TABLE (table1), label5, 2, 3, 1, 2,                    (GtkAttachOptions) (GTK_FILL),                    (GtkAttachOptions) (0), 0, 0);  gtk_label_set_justify (GTK_LABEL (label5), GTK_JUSTIFY_FILL);  gtk_misc_set_alignment (GTK_MISC (label5), 0, 0.5);  spinbuttonLeft_adj = gtk_adjustment_new (1, 0, 1000, 1, 10, 10);  spinbuttonLeft = gtk_spin_button_new (GTK_ADJUSTMENT (spinbuttonLeft_adj), 1, 0);  gtk_widget_show (spinbuttonLeft);  gtk_table_attach (GTK_TABLE (table1), spinbuttonLeft, 1, 2, 0, 1,                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),                    (GtkAttachOptions) (0), 0, 0);  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbuttonLeft), TRUE);  spinbuttonTop_adj = gtk_adjustment_new (1, 0, 1000, 1, 10, 10);  spinbuttonTop = gtk_spin_button_new (GTK_ADJUSTMENT (spinbuttonTop_adj), 1, 0);  gtk_widget_show (spinbuttonTop);  gtk_table_attach (GTK_TABLE (table1), spinbuttonTop, 1, 2, 1, 2,                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),                    (GtkAttachOptions) (0), 0, 0);  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbuttonTop), TRUE);  spinbuttonBottom_adj = gtk_adjustment_new (1, 0, 1000, 1, 10, 10);  spinbuttonBottom = gtk_spin_button_new (GTK_ADJUSTMENT (spinbuttonBottom_adj), 1, 0);  gtk_widget_show (spinbuttonBottom);  gtk_table_attach (GTK_TABLE (table1), spinbuttonBottom, 3, 4, 1, 2,                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),                    (GtkAttachOptions) (0), 0, 0);  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbuttonBottom), TRUE);  spinbuttonRight_adj = gtk_adjustment_new (1, 0, 1000, 1, 10, 10);  spinbuttonRight = gtk_spin_button_new (GTK_ADJUSTMENT (spinbuttonRight_adj), 1, 0);  gtk_widget_show (spinbuttonRight);  gtk_table_attach (GTK_TABLE (table1), spinbuttonRight, 3, 4, 0, 1,                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),                    (GtkAttachOptions) (0), 0, 0);  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbuttonRight), TRUE);  scale = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 100, 1, 10, 10)));  gtk_widget_show (scale);  gtk_box_pack_start (GTK_BOX (vbox1), scale, FALSE, TRUE, 0);  drawingarea1 = gtk_drawing_area_new ();  gtk_widget_show (drawingarea1);  gtk_box_pack_start (GTK_BOX (vbox1), drawingarea1, FALSE, TRUE, 0);  gtk_widget_set_size_request (drawingarea1, 100, 100);  dialog_action_area1 = GTK_DIALOG (dialog1)->action_area;  gtk_widget_show (dialog_action_area1);  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);  /* Store pointers to all widgets, for use by lookup_widget(). */  GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog1, "dialog1");  GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog_vbox1, "dialog_vbox1");  GLADE_HOOKUP_OBJECT (dialog1, vbox1, "vbox1");  GLADE_HOOKUP_OBJECT (dialog1, hbuttonbox1, "hbuttonbox1");  GLADE_HOOKUP_OBJECT (dialog1, buttonCancel, "buttonCancel");  GLADE_HOOKUP_OBJECT (dialog1, buttonApply, "buttonApply");  GLADE_HOOKUP_OBJECT (dialog1, buttonOk, "buttonOk");  GLADE_HOOKUP_OBJECT (dialog1, hbuttonbox2, "hbuttonbox2");  GLADE_HOOKUP_OBJECT (dialog1, buttonAutocrop, "buttonAutocrop");  GLADE_HOOKUP_OBJECT (dialog1, buttonReset, "buttonReset");  GLADE_HOOKUP_OBJECT (dialog1, alignment1, "alignment1");  GLADE_HOOKUP_OBJECT (dialog1, hbox1, "hbox1");  GLADE_HOOKUP_OBJECT (dialog1, image1, "image1");  GLADE_HOOKUP_OBJECT (dialog1, label1, "label1");  GLADE_HOOKUP_OBJECT (dialog1, table1, "table1");  GLADE_HOOKUP_OBJECT (dialog1, label2, "label2");  GLADE_HOOKUP_OBJECT (dialog1, label3, "label3");  GLADE_HOOKUP_OBJECT (dialog1, label4, "label4");  GLADE_HOOKUP_OBJECT (dialog1, label5, "label5");  GLADE_HOOKUP_OBJECT (dialog1, spinbuttonLeft, "spinbuttonLeft");  GLADE_HOOKUP_OBJECT (dialog1, spinbuttonTop, "spinbuttonTop");  GLADE_HOOKUP_OBJECT (dialog1, spinbuttonBottom, "spinbuttonBottom");  GLADE_HOOKUP_OBJECT (dialog1, spinbuttonRight, "spinbuttonRight");  GLADE_HOOKUP_OBJECT (dialog1, scale, "scale");  GLADE_HOOKUP_OBJECT (dialog1, drawingarea1, "drawingarea1");  GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog_action_area1, "dialog_action_area1");  return dialog1;}