[Xfce4-commits] <xfce4-taskmanager:master> Center dialogs on mouse cursor
Mike Massonnet
noreply at xfce.org
Wed Jun 2 02:50:01 CEST 2010
Updating branch refs/heads/master
to 4d20ea95c53b0beb35e63f0c5d67b5060bcc2f51 (commit)
from 9238d67f9a2f3fd9e7c01e842b87cfcbe04ad280 (commit)
commit 4d20ea95c53b0beb35e63f0c5d67b5060bcc2f51
Author: Mike Massonnet <mmassonnet at xfce.org>
Date: Wed Jun 2 02:47:18 2010 +0200
Center dialogs on mouse cursor
src/process-tree-view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/process-tree-view.c b/src/process-tree-view.c
index 313d13c..d860fcb 100644
--- a/src/process-tree-view.c
+++ b/src/process-tree-view.c
@@ -318,6 +318,7 @@ cb_send_signal (GtkMenuItem *mi, gpointer user_data)
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
_("Are you sure you want to send a signal to the PID %d?"), pid);
gtk_window_set_title (GTK_WINDOW (dialog), _("Task Manager"));
+ gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE);
res = gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
if (res != GTK_RESPONSE_YES)
@@ -332,6 +333,7 @@ cb_send_signal (GtkMenuItem *mi, gpointer user_data)
_("An error was encountered by sending a signal to the PID %d. "
"It is likely you don't have the required privileges."), pid);
gtk_window_set_title (GTK_WINDOW (dialog), _("Task Manager"));
+ gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
}
@@ -350,6 +352,7 @@ cb_set_priority (GtkMenuItem *mi, gpointer user_data)
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), _("An error was encountered by setting a priority to the PID %d. "
"It is likely you don't have the required privileges."), pid);
gtk_window_set_title (GTK_WINDOW (dialog), _("Task Manager"));
+ gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
}
More information about the Xfce4-commits
mailing list