mirror of https://github.com/GNOME/gimp.git
app: Use gtk_window_set_title() instead of gdk_window_set_title()
Get rid of the last calls to gdk_window_set_title() and instead use gdk_window_set_title(). The gdk_window_set_title() calls in gimpdisplayshell-title.c is a legacy from the initial import of the project.
This commit is contained in:
parent
bacc1361cc
commit
1c0dea5772
|
@ -51,8 +51,7 @@ gimp_display_shell_progress_start (GimpProgress *progress,
|
|||
|
||||
if (progress && gimp_display_shell_is_iconified (shell))
|
||||
{
|
||||
gdk_window_set_title (gtk_widget_get_window (GTK_WIDGET (shell)),
|
||||
message);
|
||||
gtk_window_set_title (GTK_WINDOW (shell), message);
|
||||
}
|
||||
|
||||
return progress;
|
||||
|
@ -88,8 +87,7 @@ gimp_display_shell_progress_set_text (GimpProgress *progress,
|
|||
if (gimp_progress_is_active (GIMP_PROGRESS (shell->statusbar)) &&
|
||||
gimp_display_shell_is_iconified (shell))
|
||||
{
|
||||
gdk_window_set_title (gtk_widget_get_window (GTK_WIDGET (shell)),
|
||||
message);
|
||||
gtk_window_set_title (GTK_WINDOW (shell), message);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -198,8 +196,7 @@ gimp_display_shell_progress_window_state_changed (GimpDisplayShell *shell)
|
|||
"progress");
|
||||
if (msg)
|
||||
{
|
||||
gdk_window_set_title (gtk_widget_get_window (GTK_WIDGET (shell)),
|
||||
msg);
|
||||
gtk_window_set_title (GTK_WINDOW (shell), msg);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -107,8 +107,7 @@ gimp_display_shell_update_title_idle (gpointer data)
|
|||
|
||||
g_strlcpy (title + len, GIMP_ACRONYM, sizeof (title) - len);
|
||||
|
||||
gdk_window_set_title (gtk_widget_get_window (GTK_WIDGET (shell)),
|
||||
title);
|
||||
gtk_window_set_title (GTK_WINDOW (shell), title);
|
||||
|
||||
/* format the statusbar */
|
||||
gimp_display_shell_format_title (shell, title, sizeof (title),
|
||||
|
@ -119,8 +118,7 @@ gimp_display_shell_update_title_idle (gpointer data)
|
|||
}
|
||||
else
|
||||
{
|
||||
gdk_window_set_title (gtk_widget_get_window (GTK_WIDGET (shell)),
|
||||
GIMP_NAME);
|
||||
gtk_window_set_title (GTK_WINDOW (shell), GIMP_NAME);
|
||||
|
||||
gimp_statusbar_replace (GIMP_STATUSBAR (shell->statusbar), "title",
|
||||
NULL, " ");
|
||||
|
|
Loading…
Reference in New Issue