Skip to content

Commit eb1688d

Browse files
committed
Fix compilation with libwnck-2
1 parent 3203bce commit eb1688d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/panel.c

+2
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ static void lxpanel_size_request(GtkWidget *widget, GtkRequisition *req)
278278
if (!p->visible
279279
/* When the panel is in invisible state, the content box also got hidden, thus always
280280
* report 0 size. Ask the content box instead for its size. */
281+
#ifdef WNCK_CHECK_VERSION
281282
#if WNCK_CHECK_VERSION(40, 0, 0)
282283
/* Commit 3456b747b6381f17d48629dd8fdd4d511e739b10 in libwnck and
283284
lxpanel sizing being implemented based on GTK+ 2 result in a cropped
@@ -293,6 +294,7 @@ static void lxpanel_size_request(GtkWidget *widget, GtkRequisition *req)
293294
This fix should be replaced with a proper GTK 3
294295
width-for-height/height-for-width implementation. */
295296
|| (p->widthtype == WIDTH_REQUEST && lxpanel_has_plugin(panel, "pager"))
297+
#endif
296298
#endif
297299
)
298300
gtk_widget_size_request(p->box, req);

0 commit comments

Comments
 (0)