don't raise and focus the error console for not so severe error messages.

2006-11-22  Sven Neumann  <sven@gimp.org>

	* app/gui/gui-message.c (gui_message_error_console): don't raise
	and focus the error console for not so severe error messages. Fixes
	bug #322210 and bug #373254.

	* app/widgets/gimperrorconsole.c (gimp_error_console_init): reduced
	font sizes in error console.
This commit is contained in:
Sven Neumann
2006-11-22 16:33:31 +00:00
committed by Sven Neumann
parent d3543f1b06
commit aa09e29272
3 changed files with 30 additions and 7 deletions

View File

@ -1,3 +1,12 @@
2006-11-22 Sven Neumann <sven@gimp.org>
* app/gui/gui-message.c (gui_message_error_console): don't raise
and focus the error console for not so severe error messages. Fixes
bug #322210 and bug #373254.
* app/widgets/gimperrorconsole.c (gimp_error_console_init): reduced
font sizes in error console.
2006-11-22 Simon Budig <simon@gimp.org>
* app/xcf/xcf-load.c: load the channels in the proper order.
@ -5,8 +14,8 @@
2006-11-22 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpchainbutton.c: code cleanup, seems to fix bug
#376668.
* libgimpwidgets/gimpchainbutton.c: code cleanup, seems to fix
bug #376668.
2006-11-21 Michael Natterer <mitch@gimp.org>

View File

@ -39,6 +39,7 @@
#include "widgets/gimperrorconsole.h"
#include "widgets/gimperrordialog.h"
#include "widgets/gimpprogressdialog.h"
#include "widgets/gimpsessioninfo.h"
#include "widgets/gimpwidgets-utils.h"
#include "dialogs/dialogs.h"
@ -95,11 +96,24 @@ gui_message_error_console (GimpMessageSeverity severity,
const gchar *domain,
const gchar *message)
{
GtkWidget *dockable;
GtkWidget *dockable = NULL;
dockable = gimp_dialog_factory_dialog_raise (global_dock_factory,
gdk_screen_get_default (),
"gimp-error-console", -1);
/* try to avoid raising the error console for not so severe messages */
if (severity < GIMP_MESSAGE_ERROR)
{
GimpSessionInfo *info;
info = gimp_dialog_factory_find_session_info (global_dock_factory,
"gimp-error-console");
if (info && GIMP_IS_DOCKABLE (info->widget))
dockable = info->widget;
}
if (! dockable)
dockable = gimp_dialog_factory_dialog_raise (global_dock_factory,
gdk_screen_get_default (),
"gimp-error-console", -1);
if (dockable)
{

View File

@ -78,9 +78,9 @@ gimp_error_console_init (GimpErrorConsole *console)
gtk_text_buffer_create_tag (console->text_buffer, "title",
"weight", PANGO_WEIGHT_BOLD,
"scale", PANGO_SCALE_LARGE,
NULL);
gtk_text_buffer_create_tag (console->text_buffer, "message",
"scale", PANGO_SCALE_SMALL,
NULL);
scrolled_window = gtk_scrolled_window_new (NULL, NULL);