forked from enlightenment/enlightenment
fix compiler warnings when building for wayland-only
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
58cbf19c10
commit
66233ec6a7
|
@ -564,6 +564,9 @@ _e_entry_x_selection_notify_handler(void *data, int type __UNUSED__, void *event
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
(void)data;
|
||||||
|
(void)event;
|
||||||
#endif
|
#endif
|
||||||
return ECORE_CALLBACK_PASS_ON;
|
return ECORE_CALLBACK_PASS_ON;
|
||||||
}
|
}
|
||||||
|
@ -576,7 +579,6 @@ _e_entry_x_selection_update(Evas_Object *entry)
|
||||||
Ecore_Window xwin;
|
Ecore_Window xwin;
|
||||||
E_Win *win;
|
E_Win *win;
|
||||||
E_Comp *c;
|
E_Comp *c;
|
||||||
const char *text;
|
|
||||||
|
|
||||||
if ((!entry) || (!(sd = evas_object_smart_data_get(entry))))
|
if ((!entry) || (!(sd = evas_object_smart_data_get(entry))))
|
||||||
return;
|
return;
|
||||||
|
@ -597,6 +599,8 @@ _e_entry_x_selection_update(Evas_Object *entry)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#ifndef HAVE_WAYLAND_ONLY
|
#ifndef HAVE_WAYLAND_ONLY
|
||||||
|
const char *text;
|
||||||
|
|
||||||
text = edje_object_part_text_selection_get(sd->entry_object, ENTRY_PART_NAME);
|
text = edje_object_part_text_selection_get(sd->entry_object, ENTRY_PART_NAME);
|
||||||
if (text)
|
if (text)
|
||||||
ecore_x_selection_primary_set(xwin, text, strlen(text) + 1);
|
ecore_x_selection_primary_set(xwin, text, strlen(text) + 1);
|
||||||
|
@ -637,6 +641,8 @@ _entry_paste_request_signal_cb(void *data,
|
||||||
ecore_x_selection_clipboard_request(xwin,
|
ecore_x_selection_clipboard_request(xwin,
|
||||||
ECORE_X_SELECTION_TARGET_UTF8_STRING);
|
ECORE_X_SELECTION_TARGET_UTF8_STRING);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
(void)emission;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue