[gnome-settings-daemon] media-keys: Remove useless sizing code
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] media-keys: Remove useless sizing code
- Date: Mon, 16 Apr 2012 17:35:47 +0000 (UTC)
commit 691cc95e1c8b4b99b9bbd04b0318fece78d9ca67
Author: Bastien Nocera <hadess hadess net>
Date: Mon Apr 16 17:54:38 2012 +0100
media-keys: Remove useless sizing code
The window will always have a default size, and we can usually
trust that value.
plugins/media-keys/gsd-media-keys-manager.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index a7021ea..7694d6c 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -671,7 +671,6 @@ dialog_show (GsdMediaKeysManager *manager)
int screen_h;
int x;
int y;
- GtkRequisition win_req;
GdkRectangle geometry;
int monitor;
@@ -684,12 +683,6 @@ dialog_show (GsdMediaKeysManager *manager)
* know its true size, yet, so we need to jump through hoops
*/
gtk_window_get_default_size (GTK_WINDOW (manager->priv->dialog), &orig_w, &orig_h);
- gtk_widget_size_request (manager->priv->dialog, &win_req);
-
- if (win_req.width > orig_w)
- orig_w = win_req.width;
- if (win_req.height > orig_h)
- orig_h = win_req.height;
monitor = gdk_screen_get_primary_monitor (manager->priv->current_screen);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]