[gnome-panel/wip/segeiger/panel-add-to-dialog] PanelAddtoDialog: Add back MAX_ADDTOPANEL_HEIGHT, but with MAX macro instead of MIN



commit bdb053b60653dcc1968dee9232273528626f5263
Author: Sebastian Geiger <sbastig gmx net>
Date:   Fri Jul 17 00:04:32 2015 +0200

    PanelAddtoDialog: Add back MAX_ADDTOPANEL_HEIGHT, but with MAX macro instead of MIN

 gnome-panel/panel-addto.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gnome-panel/panel-addto.c b/gnome-panel/panel-addto.c
index d3663d6..5e80f43 100644
--- a/gnome-panel/panel-addto.c
+++ b/gnome-panel/panel-addto.c
@@ -1305,6 +1305,8 @@ panel_addto_dialog_init (PanelAddtoDialog *dialog)
        gtk_widget_init_template (GTK_WIDGET (dialog));
 }
 
+#define MAX_ADDTOPANEL_HEIGHT 490
+
 void
 panel_addto_present (GtkMenuItem *item,
                     PanelWidget *panel_widget)
@@ -1329,7 +1331,7 @@ panel_addto_present (GtkMenuItem *item,
 
        screen = gtk_window_get_screen (GTK_WINDOW (toplevel));
        screen_height = gdk_screen_get_height (screen);
-       height = 3 * (screen_height / 4);
+       height = MAX(MAX_ADDTOPANEL_HEIGHT, 3 * (screen_height / 4));
 
        if (!dialog) {
                dialog = panel_addto_dialog_new (panel_widget);


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