Skip to content

Commit f775e89

Browse files
committed
fix rendering and removal of in-process applets on unexpanded panel
Fix #797 and #799
1 parent 8e196da commit f775e89

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

libmate-panel-applet/mate-panel-applet.c

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,18 +1096,15 @@ mate_panel_applet_get_preferred_height (GtkWidget *widget,
10961096
static GtkSizeRequestMode
10971097
mate_panel_applet_get_request_mode (GtkWidget *widget)
10981098
{
1099-
MatePanelApplet *applet = MATE_PANEL_APPLET (widget);
1100-
MatePanelAppletOrient orientation;
1101-
1102-
if (applet->priv->out_of_process)
1103-
return GTK_SIZE_REQUEST_CONSTANT_SIZE;
1104-
1105-
orientation = mate_panel_applet_get_orient (applet);
1106-
if (orientation == MATE_PANEL_APPLET_ORIENT_UP ||
1107-
orientation == MATE_PANEL_APPLET_ORIENT_DOWN)
1108-
return GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH;
1109-
1110-
return GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT;
1099+
/*Do not use GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH
1100+
*or GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT
1101+
*to avoid problems with in-process applets
1102+
*when the panel is not expanded
1103+
*See https://github.com/mate-desktop/mate-panel/issues/797
1104+
*and https://github.com/mate-desktop/mate-panel/issues/799
1105+
*Out of process applets already use GTK_SIZE_REQUEST_CONSTANT_SIZE
1106+
*/
1107+
return GTK_SIZE_REQUEST_CONSTANT_SIZE;
11111108
}
11121109

11131110
static void

0 commit comments

Comments
 (0)