mirror of https://github.com/GNOME/gimp.git
don't accept a progress message if the status bar is already showing a
2008-07-09 Sven Neumann <sven@gimp.org> * app/display/gimpstatusbar.c (gimp_statusbar_progress_message): don't accept a progress message if the status bar is already showing a temporary message. svn path=/trunk/; revision=26094
This commit is contained in:
parent
c3e86092bb
commit
1fe4281317
|
@ -1,3 +1,9 @@
|
|||
2008-07-09 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/display/gimpstatusbar.c (gimp_statusbar_progress_message):
|
||||
don't accept a progress message if the status bar is already
|
||||
showing a temporary message.
|
||||
|
||||
2008-07-09 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/tiff-load.c (tiff_warning): send warnings about
|
||||
|
|
|
@ -493,13 +493,18 @@ gimp_statusbar_progress_message (GimpProgress *progress,
|
|||
GimpStatusbar *statusbar = GIMP_STATUSBAR (progress);
|
||||
GtkWidget *label = GTK_STATUSBAR (statusbar)->label;
|
||||
PangoLayout *layout;
|
||||
const gchar *stock_id = gimp_get_message_stock_id (severity);
|
||||
const gchar *stock_id;
|
||||
gboolean handle_msg = FALSE;
|
||||
|
||||
/* we can only handle short one-liners */
|
||||
/* don't accept a message if we are already displaying one */
|
||||
if (statusbar->temp_timeout_id)
|
||||
return FALSE;
|
||||
|
||||
/* we can only handle short one-liners */
|
||||
layout = gtk_widget_create_pango_layout (label, message);
|
||||
|
||||
stock_id = gimp_get_message_stock_id (severity);
|
||||
|
||||
if (pango_layout_get_line_count (layout) == 1)
|
||||
{
|
||||
gint width;
|
||||
|
|
Loading…
Reference in New Issue