[gdm] Fix panel shrinking after icon theme changes
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] Fix panel shrinking after icon theme changes
- Date: Tue, 15 Jun 2010 21:15:48 +0000 (UTC)
commit 6d7a48dc1c4db6ffaa9c08b8445012e3ef702259
Author: William Jon McCann <jmccann redhat com>
Date: Tue Jun 15 17:14:45 2010 -0400
Fix panel shrinking after icon theme changes
https://bugzilla.gnome.org/show_bug.cgi?id=617665
gui/simple-greeter/gdm-greeter-panel.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-greeter-panel.c b/gui/simple-greeter/gdm-greeter-panel.c
index 89f2cb5..ba5c31b 100644
--- a/gui/simple-greeter/gdm-greeter-panel.c
+++ b/gui/simple-greeter/gdm-greeter-panel.c
@@ -254,6 +254,8 @@ gdm_greeter_panel_real_realize (GtkWidget *widget)
GTK_WIDGET_CLASS (gdm_greeter_panel_parent_class)->realize (widget);
}
+ gdk_window_set_geometry_hints (widget->window, NULL, GDK_HINT_POS);
+
gdm_greeter_panel_move_resize_window (GDM_GREETER_PANEL (widget), TRUE, TRUE);
g_signal_connect (gtk_window_get_screen (GTK_WINDOW (widget)),
@@ -386,10 +388,6 @@ gdm_greeter_panel_real_size_request (GtkWidget *widget,
panel = GDM_GREETER_PANEL (widget);
bin = GTK_BIN (widget);
- if (gtk_bin_get_child (bin) && gtk_widget_get_visible (gtk_bin_get_child (bin))) {
- gtk_widget_size_request (gtk_bin_get_child (bin), requisition);
- }
-
old_geometry = panel->priv->geometry;
update_geometry (panel, requisition);
@@ -397,6 +395,10 @@ gdm_greeter_panel_real_size_request (GtkWidget *widget,
requisition->width = panel->priv->geometry.width;
requisition->height = panel->priv->geometry.height;
+ if (gtk_bin_get_child (bin) && gtk_widget_get_visible (gtk_bin_get_child (bin))) {
+ gtk_widget_size_request (gtk_bin_get_child (bin), requisition);
+ }
+
if (! gtk_widget_get_realized (widget)) {
return;
}
@@ -413,6 +415,7 @@ gdm_greeter_panel_real_size_request (GtkWidget *widget,
gdm_greeter_panel_move_resize_window (panel, position_changed, size_changed);
}
+
static void
gdm_greeter_panel_real_show (GtkWidget *widget)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]