[GB.DBUS.TRAYICON]
* BUG: Setting the Picture of an hidden "Unity" TrayIcon keeps it hidden. [GB.GTK] * NEW: Remove TrayIcon Menu event. [GB.GTK3] * NEW: Remove TrayIcon Menu event. [GB.QT4] * NEW: Remove TrayIcon Menu event. [GB.QT5] * NEW: Remove TrayIcon Menu event. git-svn-id: svn://localhost/gambas/trunk@7168 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
47fd153ba0
commit
27cf0ca10a
@ -181,9 +181,9 @@ Property Read org_kde_StatusNotifierItem_Menu As DBusObject
|
||||
' Asks the status notifier item to show a context menu, this is typically a consequence of user input, such as mouse right click over the graphical representation of the item.
|
||||
'
|
||||
' the x and y parameters are in screen coordinates and is to be considered an hint to the item about where to show the context menu.
|
||||
Public Sub org_kde_StatusNotifierItem_ContextMenu(X As Integer, Y As Integer)
|
||||
Public Sub org_kde_StatusNotifierItem_ContextMenu((X) As Integer, (Y) As Integer)
|
||||
|
||||
GetParent()._ContextMenu(X, Y)
|
||||
'GetParent()._ContextMenu(X, Y)
|
||||
|
||||
End
|
||||
|
||||
|
@ -12,7 +12,6 @@ Public Enum Horizontal, Vertical
|
||||
|
||||
Event Click
|
||||
Event Scroll(Delta As Float, Orientation As Integer)
|
||||
Event Menu
|
||||
|
||||
Property Name As String
|
||||
Property Picture, Icon As Picture
|
||||
@ -171,8 +170,10 @@ Private Sub Picture_Write(Value As Picture)
|
||||
|
||||
If $bAppIndicator Then
|
||||
$bIconDirty = True
|
||||
Hide
|
||||
Show
|
||||
If $bVisible Then
|
||||
Hide
|
||||
Show
|
||||
Endif
|
||||
Endif
|
||||
|
||||
If $bVisible Or If $bAppIndicator Then DBus[GetServiceName()].Raise($hObject, "org.kde.StatusNotifierItem.NewIcon")
|
||||
@ -193,17 +194,13 @@ Private Sub GetMenu() As Menu
|
||||
|
||||
End
|
||||
|
||||
Public Sub _ContextMenu(X As Integer, Y As Integer)
|
||||
|
||||
Dim hMenu As Menu = GetMenu()
|
||||
|
||||
If hMenu Then
|
||||
hMenu.Popup(X, Y)
|
||||
Else
|
||||
Raise Menu
|
||||
Endif
|
||||
|
||||
End
|
||||
' Public Sub _ContextMenu(X As Integer, Y As Integer)
|
||||
'
|
||||
' Dim hMenu As Menu = GetMenu()
|
||||
'
|
||||
' If hMenu Then hMenu.Popup(X, Y)
|
||||
'
|
||||
' End
|
||||
|
||||
Private Function PopupMenu_Read() As String
|
||||
|
||||
|
@ -35,7 +35,6 @@
|
||||
|
||||
DECLARE_EVENT(EVENT_Click);
|
||||
DECLARE_EVENT(EVENT_Scroll);
|
||||
DECLARE_EVENT(EVENT_Menu);
|
||||
|
||||
static void cb_destroy(gTrayIcon *sender)
|
||||
{
|
||||
@ -69,7 +68,7 @@ static void cb_menu(gTrayIcon *sender)
|
||||
}
|
||||
}
|
||||
|
||||
GB.Raise(sender->hFree, EVENT_Menu, 0);
|
||||
//GB.Raise(sender->hFree, EVENT_Menu, 0);
|
||||
}
|
||||
|
||||
static void cb_scroll(gTrayIcon *sender)
|
||||
@ -323,7 +322,6 @@ GB_DESC TrayIconDesc[] =
|
||||
|
||||
GB_EVENT("Click", NULL, NULL, &EVENT_Click),
|
||||
GB_EVENT("Scroll", NULL, "(Delta)f(Orientation)i", &EVENT_Scroll),
|
||||
GB_EVENT("Menu", NULL, NULL, &EVENT_Menu),
|
||||
|
||||
GB_METHOD("_unknown", "v", TrayIcon_unknown, "."),
|
||||
|
||||
|
@ -34,7 +34,6 @@
|
||||
|
||||
DECLARE_EVENT(EVENT_Click);
|
||||
DECLARE_EVENT(EVENT_Scroll);
|
||||
DECLARE_EVENT(EVENT_Menu);
|
||||
|
||||
static QList<CTRAYICON *> _list;
|
||||
static QPixmap *_default_trayicon = NULL;
|
||||
@ -441,7 +440,6 @@ GB_DESC TrayIconDesc[] =
|
||||
|
||||
GB_EVENT("Click", NULL, NULL, &EVENT_Click),
|
||||
GB_EVENT("Scroll", NULL, "(Delta)f(Orientation)i", &EVENT_Scroll),
|
||||
GB_EVENT("Menu", NULL, NULL, &EVENT_Menu),
|
||||
|
||||
GB_METHOD("_unknown", "v", TrayIcon_unknown, "."),
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user