[gnome-panel] panel-applet-frame: prepare for new applet frame
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] panel-applet-frame: prepare for new applet frame
- Date: Mon, 17 Oct 2016 23:42:49 +0000 (UTC)
commit 0da540f468a34074225e2b4334530ffc74b10164
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Oct 18 02:05:31 2016 +0300
panel-applet-frame: prepare for new applet frame
With new libgnome-panel library we will want always handle events
in panel applet frame.
gnome-panel/panel-applet-frame.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/gnome-panel/panel-applet-frame.c b/gnome-panel/panel-applet-frame.c
index 0a57132..285e3ae 100644
--- a/gnome-panel/panel-applet-frame.c
+++ b/gnome-panel/panel-applet-frame.c
@@ -44,6 +44,7 @@
#include "xstuff.h"
#include "panel-compatibility.h"
+#include <libpanel-applet-private/panel-applet-frame-dbus.h>
#include "panel-applet-frame.h"
#define PANEL_RESPONSE_DELETE 0
@@ -346,11 +347,13 @@ panel_applet_frame_button_changed (GtkWidget *widget,
frame = PANEL_APPLET_FRAME (widget);
- if (!frame->priv->has_handle)
- return FALSE;
+ if (PANEL_IS_APPLET_FRAME_DBUS (frame)) {
+ if (!frame->priv->has_handle)
+ return FALSE;
- if (event->window != gtk_widget_get_window (widget))
- return FALSE;
+ if (event->window != gtk_widget_get_window (widget))
+ return FALSE;
+ }
modifiers = event->state & gtk_accelerator_get_default_mod_mask ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]