[gimp] app: Use gtk_window_set_title() instead of gdk_window_set_title()
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp] app: Use gtk_window_set_title() instead of gdk_window_set_title()
- Date: Mon, 20 Jul 2009 11:14:55 +0000 (UTC)
commit 1c0dea5772ddb9649b420fc392866205ac4eef37
Author: Martin Nordholts <martinn src gnome org>
Date: Mon Jul 20 13:14:09 2009 +0200
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.
app/display/gimpdisplayshell-progress.c | 9 +++------
app/display/gimpdisplayshell-title.c | 6 ++----
2 files changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-progress.c b/app/display/gimpdisplayshell-progress.c
index 8b311fd..1397e74 100644
--- a/app/display/gimpdisplayshell-progress.c
+++ b/app/display/gimpdisplayshell-progress.c
@@ -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;
}
}
diff --git a/app/display/gimpdisplayshell-title.c b/app/display/gimpdisplayshell-title.c
index eabf786..af7b042 100644
--- a/app/display/gimpdisplayshell-title.c
+++ b/app/display/gimpdisplayshell-title.c
@@ -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, " ");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]