kopia lustrzana https://gitlab.com/sane-project/frontends
Fix component display
rodzic
2aee50231d
commit
fd2cd8c153
|
@ -1913,12 +1913,12 @@ device_dialog (void)
|
|||
if (scan_win.mode == STANDALONE)
|
||||
{
|
||||
frame = gtk_frame_new ("Output");
|
||||
// gtk_container_set_border_width (GTK_CONTAINER (frame), 4);
|
||||
gtk_container_set_border_width (GTK_WIDGET (frame), 4);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
|
||||
|
||||
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
|
||||
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
|
||||
// gtk_container_set_border_width (GTK_CONTAINER (hbox), 2);
|
||||
gtk_container_set_border_width (GTK_WIDGET (hbox), 2);
|
||||
gtk_frame_set_child (GTK_FRAME (frame), hbox);
|
||||
|
||||
label = gtk_label_new ("Filename");
|
||||
|
@ -1971,7 +1971,7 @@ device_dialog (void)
|
|||
gtk_widget_show (hbox);
|
||||
|
||||
frame = gtk_frame_new (NULL);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, FALSE, 0);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
|
||||
|
@ -1981,7 +1981,7 @@ device_dialog (void)
|
|||
gtk_widget_show (hbox);
|
||||
|
||||
scan_win.info_label = gtk_label_new ("0x0: 0KB");
|
||||
gtk_box_pack_start (GTK_BOX (hbox), scan_win.info_label, FALSE, FALSE, 0);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), scan_win.info_label, FALSE, TRUE, 0);
|
||||
gtk_widget_show (scan_win.info_label);
|
||||
|
||||
update_param (dialog, 0);
|
||||
|
@ -1991,14 +1991,16 @@ device_dialog (void)
|
|||
|
||||
/* The Scan button */
|
||||
scan_win.scan_button = gtk_button_new_with_label("Scan");
|
||||
gtk_box_pack_start (GTK_BOX (bbox), scan_win.scan_button, TRUE, TRUE, 0);
|
||||
gtk_widget_set_halign(scan_win.scan_button, GTK_ALIGN_FILL);
|
||||
gtk_box_pack_start (GTK_BOX (bbox), scan_win.scan_button, FALSE, TRUE, 0);
|
||||
g_signal_connect (G_OBJECT (scan_win.scan_button), "clicked",
|
||||
G_CALLBACK (scan_dialog), scan_win.shell);
|
||||
gtk_widget_show (scan_win.scan_button);
|
||||
|
||||
/* The Preview button */
|
||||
scan_win.preview_button = gtk_button_new_with_label("Preview Window");
|
||||
gtk_box_pack_start (GTK_BOX (bbox), scan_win.preview_button, TRUE, TRUE, 0);
|
||||
gtk_widget_set_halign(scan_win.preview_button, GTK_ALIGN_FILL);
|
||||
gtk_box_pack_start (GTK_BOX (bbox), scan_win.preview_button, FALSE, TRUE, 0);
|
||||
g_signal_connect (G_OBJECT (scan_win.preview_button), "clicked",
|
||||
G_CALLBACK (scan_preview), scan_win.shell);
|
||||
gtk_widget_show (scan_win.preview_button);
|
||||
|
|
Ładowanie…
Reference in New Issue