Commit f622c868 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

gimprc.in default to restore_session == TRUE so first time users really

2000-04-20  Michael Natterer  <mitch@gimp.org>

	* gimprc.in
	* app/gimprc.c: default to restore_session == TRUE so first time
	users really see the automatically opened dialogs.

	* app/session.[ch]: also open "Tool Options" if no sessionrc
	exists. Moved the harcoded initial positions away from the top and
	left edges of the screen to avoid dialogs which appear underneath
	panels. Also arranged the four default dialogs non-overlapping.
parent 63dc6ed3
2000-04-20 Michael Natterer <mitch@gimp.org>
* gimprc.in
* app/gimprc.c: default to restore_session == TRUE so first time
users really see the automatically opened dialogs.
* app/session.[ch]: also open "Tool Options" if no sessionrc
exists. Moved the harcoded initial positions away from the top and
left edges of the screen to avoid dialogs which appear underneath
panels. Also arranged the four default dialogs non-overlapping.
2000-04-20 Michael Natterer <mitch@gimp.org>
* app/fuzzy_select.c
......
......@@ -143,7 +143,7 @@ InterpolationType interpolation_type = LINEAR_INTERPOLATION;
gboolean confirm_on_close = TRUE;
gboolean save_session_info = TRUE;
gboolean save_device_status = FALSE;
gboolean always_restore_session = FALSE;
gboolean always_restore_session = TRUE;
gint default_width = 983;
gint default_height = 857;
/* temporary default size increase to stress test stuff. -- austin 7/11/99 */
......
......@@ -62,75 +62,98 @@ static void session_reset_open_state (SessionInfo *info);
GList *session_info_updates = NULL;
#define LEFT_OFFSET 60
#define TOP_OFFSET 60
/* global session variables */
SessionInfo toolbox_session_info =
{
"toolbox",
NULL,
0, 0, 0, 0, 0, FALSE
LEFT_OFFSET, TOP_OFFSET,
0, 0,
0, FALSE
};
SessionInfo lc_dialog_session_info =
{
"lc-dialog",
(GtkItemFactoryCallback) dialogs_lc_cmd_callback,
0, 400, 0, 0, 0, FALSE
};
SessionInfo info_dialog_session_info =
{
"info-dialog",
NULL,
165, 0, 0, 0, 0, FALSE
LEFT_OFFSET, TOP_OFFSET + 300,
0, 0,
0, FALSE
};
SessionInfo tool_options_session_info =
{
"tool-options",
(GtkItemFactoryCallback) dialogs_tool_options_cmd_callback,
0, 345, 0, 0, 0, FALSE
LEFT_OFFSET + 150, TOP_OFFSET,
0, 0,
0, FALSE
};
SessionInfo palette_session_info =
SessionInfo device_status_session_info =
{
"palette",
(GtkItemFactoryCallback) dialogs_palette_cmd_callback,
140, 180, 0, 0, 0, FALSE
"device-status",
(GtkItemFactoryCallback) dialogs_device_status_cmd_callback,
LEFT_OFFSET + 150, TOP_OFFSET + 250,
0, 0,
0, FALSE
};
SessionInfo brush_select_session_info =
{
"brush-select",
(GtkItemFactoryCallback) dialogs_brushes_cmd_callback,
150, 180, 0, 0, 0, FALSE
LEFT_OFFSET + 350, TOP_OFFSET,
0, 0,
0, FALSE
};
SessionInfo pattern_select_session_info =
{
"pattern-select",
(GtkItemFactoryCallback) dialogs_patterns_cmd_callback,
160, 180, 0, 0, 0, FALSE
LEFT_OFFSET + 400, TOP_OFFSET + 50,
0, 0,
0, FALSE
};
SessionInfo gradient_select_session_info =
{
"gradient-select",
(GtkItemFactoryCallback) dialogs_gradients_cmd_callback,
170, 180, 0, 0, 0, FALSE
LEFT_OFFSET + 450, TOP_OFFSET + 100,
0, 0,
0, FALSE
};
SessionInfo device_status_session_info =
SessionInfo palette_session_info =
{
"device-status",
(GtkItemFactoryCallback) dialogs_device_status_cmd_callback,
0, 600, 0, 0, 0, FALSE
"palette",
(GtkItemFactoryCallback) dialogs_palette_cmd_callback,
LEFT_OFFSET + 500, TOP_OFFSET + 150,
0, 0,
0, FALSE
};
SessionInfo info_dialog_session_info =
{
"info-dialog",
NULL,
LEFT_OFFSET + 350, TOP_OFFSET + 250,
0, 0,
0, FALSE
};
SessionInfo error_console_session_info =
{
"error-console",
(GtkItemFactoryCallback) dialogs_error_console_cmd_callback,
400, 0, 250, 300, 0, FALSE
LEFT_OFFSET, TOP_OFFSET + 250,
400, 150,
0, FALSE
};
......@@ -236,13 +259,17 @@ session_init (void)
filename = gimp_personal_rc_file ("sessionrc");
app_init_update_status (NULL, filename, -1);
/* always show L&C and Brushes on first invocation */
if (! parse_gimprc_file (filename) && save_session_info)
/* always show L&C&P, Tool Options and Brushes on first invocation */
if (! parse_gimprc_file (filename))
{
lc_dialog_session_info.open = TRUE;
session_info_updates =
g_list_append (session_info_updates, &lc_dialog_session_info);
tool_options_session_info.open = TRUE;
session_info_updates =
g_list_append (session_info_updates, &tool_options_session_info);
brush_select_session_info.open = TRUE;
session_info_updates =
g_list_append (session_info_updates, &brush_select_session_info);
......
......@@ -39,13 +39,13 @@ struct _SessionInfo
/* global session variables */
extern SessionInfo toolbox_session_info;
extern SessionInfo lc_dialog_session_info;
extern SessionInfo info_dialog_session_info;
extern SessionInfo tool_options_session_info;
extern SessionInfo palette_session_info;
extern SessionInfo device_status_session_info;
extern SessionInfo brush_select_session_info;
extern SessionInfo pattern_select_session_info;
extern SessionInfo gradient_select_session_info;
extern SessionInfo device_status_session_info;
extern SessionInfo palette_session_info;
extern SessionInfo info_dialog_session_info;
extern SessionInfo error_console_session_info;
extern GList *session_info_updates; /* This list holds all session_infos
......
......@@ -62,75 +62,98 @@ static void session_reset_open_state (SessionInfo *info);
GList *session_info_updates = NULL;
#define LEFT_OFFSET 60
#define TOP_OFFSET 60
/* global session variables */
SessionInfo toolbox_session_info =
{
"toolbox",
NULL,
0, 0, 0, 0, 0, FALSE
LEFT_OFFSET, TOP_OFFSET,
0, 0,
0, FALSE
};
SessionInfo lc_dialog_session_info =
{
"lc-dialog",
(GtkItemFactoryCallback) dialogs_lc_cmd_callback,
0, 400, 0, 0, 0, FALSE
};
SessionInfo info_dialog_session_info =
{
"info-dialog",
NULL,
165, 0, 0, 0, 0, FALSE
LEFT_OFFSET, TOP_OFFSET + 300,
0, 0,
0, FALSE
};
SessionInfo tool_options_session_info =
{
"tool-options",
(GtkItemFactoryCallback) dialogs_tool_options_cmd_callback,
0, 345, 0, 0, 0, FALSE
LEFT_OFFSET + 150, TOP_OFFSET,
0, 0,
0, FALSE
};
SessionInfo palette_session_info =
SessionInfo device_status_session_info =
{
"palette",
(GtkItemFactoryCallback) dialogs_palette_cmd_callback,
140, 180, 0, 0, 0, FALSE
"device-status",
(GtkItemFactoryCallback) dialogs_device_status_cmd_callback,
LEFT_OFFSET + 150, TOP_OFFSET + 250,
0, 0,
0, FALSE
};
SessionInfo brush_select_session_info =
{
"brush-select",
(GtkItemFactoryCallback) dialogs_brushes_cmd_callback,
150, 180, 0, 0, 0, FALSE
LEFT_OFFSET + 350, TOP_OFFSET,
0, 0,
0, FALSE
};
SessionInfo pattern_select_session_info =
{
"pattern-select",
(GtkItemFactoryCallback) dialogs_patterns_cmd_callback,
160, 180, 0, 0, 0, FALSE
LEFT_OFFSET + 400, TOP_OFFSET + 50,
0, 0,
0, FALSE
};
SessionInfo gradient_select_session_info =
{
"gradient-select",
(GtkItemFactoryCallback) dialogs_gradients_cmd_callback,
170, 180, 0, 0, 0, FALSE
LEFT_OFFSET + 450, TOP_OFFSET + 100,
0, 0,
0, FALSE
};
SessionInfo device_status_session_info =
SessionInfo palette_session_info =
{
"device-status",
(GtkItemFactoryCallback) dialogs_device_status_cmd_callback,
0, 600, 0, 0, 0, FALSE
"palette",
(GtkItemFactoryCallback) dialogs_palette_cmd_callback,
LEFT_OFFSET + 500, TOP_OFFSET + 150,
0, 0,
0, FALSE
};
SessionInfo info_dialog_session_info =
{
"info-dialog",
NULL,
LEFT_OFFSET + 350, TOP_OFFSET + 250,
0, 0,
0, FALSE
};
SessionInfo error_console_session_info =
{
"error-console",
(GtkItemFactoryCallback) dialogs_error_console_cmd_callback,
400, 0, 250, 300, 0, FALSE
LEFT_OFFSET, TOP_OFFSET + 250,
400, 150,
0, FALSE
};
......@@ -236,13 +259,17 @@ session_init (void)
filename = gimp_personal_rc_file ("sessionrc");
app_init_update_status (NULL, filename, -1);
/* always show L&C and Brushes on first invocation */
if (! parse_gimprc_file (filename) && save_session_info)
/* always show L&C&P, Tool Options and Brushes on first invocation */
if (! parse_gimprc_file (filename))
{
lc_dialog_session_info.open = TRUE;
session_info_updates =
g_list_append (session_info_updates, &lc_dialog_session_info);
tool_options_session_info.open = TRUE;
session_info_updates =
g_list_append (session_info_updates, &tool_options_session_info);
brush_select_session_info.open = TRUE;
session_info_updates =
g_list_append (session_info_updates, &brush_select_session_info);
......
......@@ -39,13 +39,13 @@ struct _SessionInfo
/* global session variables */
extern SessionInfo toolbox_session_info;
extern SessionInfo lc_dialog_session_info;
extern SessionInfo info_dialog_session_info;
extern SessionInfo tool_options_session_info;
extern SessionInfo palette_session_info;
extern SessionInfo device_status_session_info;
extern SessionInfo brush_select_session_info;
extern SessionInfo pattern_select_session_info;
extern SessionInfo gradient_select_session_info;
extern SessionInfo device_status_session_info;
extern SessionInfo palette_session_info;
extern SessionInfo info_dialog_session_info;
extern SessionInfo error_console_session_info;
extern GList *session_info_updates; /* This list holds all session_infos
......
......@@ -218,7 +218,7 @@
# Session managment
# To let GIMP try to restore your last saved session,
# just uncomment the line below...
# (always-restore-session)
(always-restore-session)
# Setting the level of interpolation
# Uncommenting this line will enable cubic interpolation.
......
......@@ -218,7 +218,7 @@
# Session managment
# To let GIMP try to restore your last saved session,
# just uncomment the line below...
# (always-restore-session)
(always-restore-session)
# Setting the level of interpolation
# Uncommenting this line will enable cubic interpolation.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment