[gnome-panel] panel-applet-frame: add _panel_applet_frame_get_can_move
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] panel-applet-frame: add _panel_applet_frame_get_can_move
- Date: Mon, 17 Oct 2016 23:42:54 +0000 (UTC)
commit ea6134d167e83c63c9bfc9567a9869af81ac35e2
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Oct 18 02:11:27 2016 +0300
panel-applet-frame: add _panel_applet_frame_get_can_move
gnome-panel/panel-applet-frame.c | 9 +++++++++
gnome-panel/panel-applet-frame.h | 2 ++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gnome-panel/panel-applet-frame.c b/gnome-panel/panel-applet-frame.c
index 285e3ae..7d2e7e4 100644
--- a/gnome-panel/panel-applet-frame.c
+++ b/gnome-panel/panel-applet-frame.c
@@ -882,3 +882,12 @@ panel_applet_frame_create (PanelToplevel *toplevel,
panel_toplevel_get_id (toplevel),
pack_type, pack_index);
}
+
+gboolean
+_panel_applet_frame_get_can_move (PanelAppletFrame *frame)
+{
+ if (!frame->priv->applet_info)
+ return FALSE;
+
+ return panel_applet_can_freely_move (frame->priv->applet_info);
+}
diff --git a/gnome-panel/panel-applet-frame.h b/gnome-panel/panel-applet-frame.h
index e98bb4c..5e1e75d 100644
--- a/gnome-panel/panel-applet-frame.h
+++ b/gnome-panel/panel-applet-frame.h
@@ -116,6 +116,8 @@ void _panel_applet_frame_update_size_hints (PanelAppletFrame *frame,
gint *size_hints,
guint n_elements);
+gboolean _panel_applet_frame_get_can_move (PanelAppletFrame *frame);
+
void _panel_applet_frame_applet_remove (PanelAppletFrame *frame);
void _panel_applet_frame_applet_move (PanelAppletFrame *frame);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]