[gnome-applets] window-picker: fix -Wincompatible-pointer-types warning
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] window-picker: fix -Wincompatible-pointer-types warning
- Date: Fri, 3 Apr 2020 20:15:17 +0000 (UTC)
commit a95bae254b0999876025660161f28ce7124b1e83
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Apr 3 22:00:34 2020 +0300
window-picker: fix -Wincompatible-pointer-types warning
gnome-applets/window-picker/task-item.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gnome-applets/window-picker/task-item.c b/gnome-applets/window-picker/task-item.c
index aeacde419..489f238a0 100644
--- a/gnome-applets/window-picker/task-item.c
+++ b/gnome-applets/window-picker/task-item.c
@@ -218,10 +218,12 @@ static GtkSizeRequestMode
task_item_get_request_mode (GtkWidget *widget)
{
TaskItem *self;
+ GtkOrientation orientation;
self = TASK_ITEM (widget);
+ orientation = gp_applet_get_orientation (GP_APPLET (self->windowPickerApplet));
- if (gp_applet_get_orientation (self->windowPickerApplet) == GTK_ORIENTATION_HORIZONTAL)
+ if (orientation == GTK_ORIENTATION_HORIZONTAL)
return GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT;
else
return GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]