Correctly set the chain_button in the monitor section.

--Sven
This commit is contained in:
Sven Neumann 1999-03-14 17:03:58 +00:00
parent c5db9098cc
commit 595514ed61
4 changed files with 14 additions and 9 deletions

View File

@ -1,3 +1,8 @@
Sun Mar 14 17:56:14 MET 1999 Sven Neumann <sven@gimp.org>
* app/preferences_dialog.c: correctly set the status of the
chain_button in the monitors section when creating the dialog
Sun Mar 14 13:26:11 MET 1999 Sven Neumann <sven@gimp.org> Sun Mar 14 13:26:11 MET 1999 Sven Neumann <sven@gimp.org>
* app/app_procs.c: reverted Michaels change as it is defintely * app/app_procs.c: reverted Michaels change as it is defintely

View File

@ -1812,7 +1812,6 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_widget_show (vbox); gtk_widget_show (vbox);
monitor_resolution_force_equal = gimp_chain_button_new (GIMP_CHAIN_BOTTOM); monitor_resolution_force_equal = gimp_chain_button_new (GIMP_CHAIN_BOTTOM);
monitor_resolution_sizeentry = gimp_size_entry_new (2, UNIT_INCH, "%s", monitor_resolution_sizeentry = gimp_size_entry_new (2, UNIT_INCH, "%s",
FALSE, TRUE, 75, FALSE, TRUE, 75,
GIMP_SIZE_ENTRY_UPDATE_RESOLUTION); GIMP_SIZE_ENTRY_UPDATE_RESOLUTION);
@ -1844,6 +1843,7 @@ file_pref_cmd_callback (GtkWidget *widget,
TRUE, TRUE, 0); TRUE, TRUE, 0);
gtk_widget_show (monitor_resolution_sizeentry); gtk_widget_show (monitor_resolution_sizeentry);
if (ABS (monitor_xres - monitor_yres) < 1e-5)
gimp_chain_button_set_active (GIMP_CHAIN_BUTTON (monitor_resolution_force_equal), gimp_chain_button_set_active (GIMP_CHAIN_BUTTON (monitor_resolution_force_equal),
TRUE); TRUE);
gtk_table_attach_defaults (GTK_TABLE (monitor_resolution_sizeentry), gtk_table_attach_defaults (GTK_TABLE (monitor_resolution_sizeentry),

View File

@ -1812,7 +1812,6 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_widget_show (vbox); gtk_widget_show (vbox);
monitor_resolution_force_equal = gimp_chain_button_new (GIMP_CHAIN_BOTTOM); monitor_resolution_force_equal = gimp_chain_button_new (GIMP_CHAIN_BOTTOM);
monitor_resolution_sizeentry = gimp_size_entry_new (2, UNIT_INCH, "%s", monitor_resolution_sizeentry = gimp_size_entry_new (2, UNIT_INCH, "%s",
FALSE, TRUE, 75, FALSE, TRUE, 75,
GIMP_SIZE_ENTRY_UPDATE_RESOLUTION); GIMP_SIZE_ENTRY_UPDATE_RESOLUTION);
@ -1844,6 +1843,7 @@ file_pref_cmd_callback (GtkWidget *widget,
TRUE, TRUE, 0); TRUE, TRUE, 0);
gtk_widget_show (monitor_resolution_sizeentry); gtk_widget_show (monitor_resolution_sizeentry);
if (ABS (monitor_xres - monitor_yres) < 1e-5)
gimp_chain_button_set_active (GIMP_CHAIN_BUTTON (monitor_resolution_force_equal), gimp_chain_button_set_active (GIMP_CHAIN_BUTTON (monitor_resolution_force_equal),
TRUE); TRUE);
gtk_table_attach_defaults (GTK_TABLE (monitor_resolution_sizeentry), gtk_table_attach_defaults (GTK_TABLE (monitor_resolution_sizeentry),

View File

@ -1812,7 +1812,6 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_widget_show (vbox); gtk_widget_show (vbox);
monitor_resolution_force_equal = gimp_chain_button_new (GIMP_CHAIN_BOTTOM); monitor_resolution_force_equal = gimp_chain_button_new (GIMP_CHAIN_BOTTOM);
monitor_resolution_sizeentry = gimp_size_entry_new (2, UNIT_INCH, "%s", monitor_resolution_sizeentry = gimp_size_entry_new (2, UNIT_INCH, "%s",
FALSE, TRUE, 75, FALSE, TRUE, 75,
GIMP_SIZE_ENTRY_UPDATE_RESOLUTION); GIMP_SIZE_ENTRY_UPDATE_RESOLUTION);
@ -1844,6 +1843,7 @@ file_pref_cmd_callback (GtkWidget *widget,
TRUE, TRUE, 0); TRUE, TRUE, 0);
gtk_widget_show (monitor_resolution_sizeentry); gtk_widget_show (monitor_resolution_sizeentry);
if (ABS (monitor_xres - monitor_yres) < 1e-5)
gimp_chain_button_set_active (GIMP_CHAIN_BUTTON (monitor_resolution_force_equal), gimp_chain_button_set_active (GIMP_CHAIN_BUTTON (monitor_resolution_force_equal),
TRUE); TRUE);
gtk_table_attach_defaults (GTK_TABLE (monitor_resolution_sizeentry), gtk_table_attach_defaults (GTK_TABLE (monitor_resolution_sizeentry),