gcmd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gcmd-dev] [PATCH] Set correct window type hint for the rename dialog


From: Thomas Jost
Subject: [gcmd-dev] [PATCH] Set correct window type hint for the rename dialog
Date: Fri, 12 Nov 2010 21:13:21 +0100

If not set to "utility", some window managers (e.g. Awesome) will just display
this as a regular dialog window.
---
 src/gnome-cmd-rename-dialog.cc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gnome-cmd-rename-dialog.cc b/src/gnome-cmd-rename-dialog.cc
index 688a5d0..3c681be 100644
--- a/src/gnome-cmd-rename-dialog.cc
+++ b/src/gnome-cmd-rename-dialog.cc
@@ -151,6 +151,7 @@ GtkWidget *gnome_cmd_rename_dialog_new (GnomeCmdFile *f, 
gint x, gint y, gint wi
     gtk_window_set_has_frame (GTK_WINDOW (dialog), 0);
     gtk_window_set_decorated (GTK_WINDOW (dialog), 0);
     gtk_widget_set_uposition (GTK_WIDGET (dialog), x, y);
+    gtk_window_set_type_hint (GTK_WINDOW (dialog), 
GDK_WINDOW_TYPE_HINT_UTILITY);
     gtk_window_set_skip_taskbar_hint (GTK_WINDOW (dialog), TRUE);
 
     gtk_widget_set_size_request (GTK_WIDGET (dialog), width+1, height+1);
-- 
1.7.3.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]