Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
8a253188
Kaydet (Commit)
8a253188
authored
Eki 24, 2012
tarafından
Antonio Fernandez
Kaydeden (comit)
Bjoern Michaelsen
Kas 14, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Menu is now subscribed to HUD awareness protocol events.
Change-Id: I0649ac50a93b3b6379642fac4d5d532d46251d72
üst
e3055bcc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
gtkframe.hxx
vcl/inc/unx/gtk/gtkframe.hxx
+1
-1
gtkframe.cxx
vcl/unx/gtk/window/gtkframe.cxx
+15
-5
No files found.
vcl/inc/unx/gtk/gtkframe.hxx
Dosyayı görüntüle @
8a253188
...
...
@@ -217,7 +217,6 @@ class GtkSalFrame : public SalFrame
friend
void
on_registrar_available
(
GDBusConnection
*
,
const
gchar
*
,
const
gchar
*
,
gpointer
);
friend
void
on_registrar_unavailable
(
GDBusConnection
*
,
const
gchar
*
,
gpointer
);
guint
m_nWatcherId
;
guint
m_nHudAwarenessId
;
void
Init
(
SalFrame
*
pParent
,
sal_uLong
nStyle
);
void
Init
(
SystemParentData
*
pSysData
);
...
...
@@ -304,6 +303,7 @@ public:
guint
m_nMenuExportId
;
guint
m_nActionGroupExportId
;
guint
m_nHudAwarenessId
;
// dispatches an event, returns true if dispatched
// and false else; if true was returned the event should
...
...
vcl/unx/gtk/window/gtkframe.cxx
Dosyayı görüntüle @
8a253188
...
...
@@ -513,6 +513,11 @@ static void ObjectDestroyedNotify( gpointer data )
}
}
static
void
hud_activated
(
gboolean
hud_active
,
gpointer
user_data
)
{
printf
(
"HUD active state: %d
\n
"
,
hud_active
);
}
gboolean
ensure_dbus_setup
(
gpointer
data
)
{
GtkSalFrame
*
pSalFrame
=
reinterpret_cast
<
GtkSalFrame
*
>
(
data
);
...
...
@@ -549,6 +554,7 @@ gboolean ensure_dbus_setup( gpointer data )
SAL_INFO
(
"vcl.unity"
,
"exporting menu model at "
<<
pMenuModel
<<
" for window "
<<
windowId
);
pSalFrame
->
m_nMenuExportId
=
g_dbus_connection_export_menu_model
(
pSessionBus
,
aDBusMenubarPath
,
pMenuModel
,
NULL
);
pSalFrame
->
m_nActionGroupExportId
=
g_dbus_connection_export_action_group
(
pSessionBus
,
aDBusPath
,
pActionGroup
,
NULL
);
pSalFrame
->
m_nHudAwarenessId
=
hud_awareness_register
(
pSessionBus
,
aDBusMenubarPath
,
hud_activated
,
pSalFrame
,
NULL
,
NULL
);
g_free
(
aDBusPath
);
g_free
(
aDBusWindowPath
);
...
...
@@ -674,10 +680,12 @@ GtkSalFrame::~GtkSalFrame()
if
(
pSessionBus
)
{
if
(
m_nMenuExportId
)
g_dbus_connection_unexport_menu_model
(
pSessionBus
,
m_nMenuExportId
);
if
(
m_nActionGroupExportId
)
g_dbus_connection_unexport_action_group
(
pSessionBus
,
m_nActionGroupExportId
);
if
(
m_nHudAwarenessId
)
hud_awareness_unregister
(
pSessionBus
,
m_nHudAwarenessId
);
if
(
m_nMenuExportId
)
g_dbus_connection_unexport_menu_model
(
pSessionBus
,
m_nMenuExportId
);
if
(
m_nActionGroupExportId
)
g_dbus_connection_unexport_action_group
(
pSessionBus
,
m_nActionGroupExportId
);
}
gtk_widget_destroy
(
m_pWindow
);
}
...
...
@@ -795,6 +803,9 @@ void GtkSalFrame::InitCommon()
m_bSetFocusOnMap
=
false
;
m_pSalMenu
=
NULL
;
m_nWatcherId
=
0
;
m_nMenuExportId
=
0
;
m_nActionGroupExportId
=
0
;
m_nHudAwarenessId
=
0
;
gtk_widget_set_app_paintable
(
m_pWindow
,
TRUE
);
gtk_widget_set_double_buffered
(
m_pWindow
,
FALSE
);
...
...
@@ -1108,7 +1119,6 @@ void GtkSalFrame::Init( SalFrame* pParent, sal_uLong nStyle )
{
// Enable DBus native menu if available.
ensure_dbus_setup
(
this
);
//EnsureAppMenuWatch();
guint32
nUserTime
=
0
;
if
(
(
nStyle
&
(
SAL_FRAME_STYLE_OWNERDRAWDECORATION
|
SAL_FRAME_STYLE_TOOLWINDOW
))
==
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment