[gnome-color-manager/gnome-2-32] trivial: ensure that calling gcm_calibrate_dialog_set_move_window() after the window is shown moves
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager/gnome-2-32] trivial: ensure that calling gcm_calibrate_dialog_set_move_window() after the window is shown moves
- Date: Fri, 6 Aug 2010 10:53:09 +0000 (UTC)
commit c4c60227449f99e4bb8e96c76ed79762114e081c
Author: Richard Hughes <richard hughsie com>
Date: Thu Aug 5 12:44:13 2010 +0100
trivial: ensure that calling gcm_calibrate_dialog_set_move_window() after the window is shown moves the window
src/gcm-calibrate-dialog.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-calibrate-dialog.c b/src/gcm-calibrate-dialog.c
index b894f57..6138a03 100644
--- a/src/gcm-calibrate-dialog.c
+++ b/src/gcm-calibrate-dialog.c
@@ -503,7 +503,18 @@ gcm_calibrate_dialog_set_show_expander (GcmCalibrateDialog *calibrate_dialog, gb
void
gcm_calibrate_dialog_set_move_window (GcmCalibrateDialog *calibrate_dialog, gboolean move_window)
{
+ gint x, y;
+ GtkWidget *widget;
+ GcmCalibrateDialogPrivate *priv = calibrate_dialog->priv;
+
calibrate_dialog->priv->move_window = move_window;
+
+ /* move the dialog out of the way, so the grey square doesn't cover it */
+ widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "dialog_calibrate"));
+ if (move_window) {
+ gtk_window_get_position (GTK_WINDOW (widget), &x, &y);
+ gtk_window_move (GTK_WINDOW (widget), 10, y);
+ }
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]