ubuntu-unity

Gtk# in monodevelop not working anymore after upgrading to ubuntu 11.10 unity

南笙酒味 提交于 2019-12-23 12:59:36
问题 I had some monodevelop programs with a GTK# user interface running smoothly in ubuntu 11.04 without unity. I have upgraded to ubuntu 11.10 with unity. Now I get the following error: "The type or namespace name 'Gtk' could not be found. Are you missing an assembly reference?". And indeed in my references the references atk-sharp, gdk-sharp, glade-sharp, glid-sharp, stk-sharp and pango-sharp are colored red and I can't re-add them. If I search in the software to install at gtk-sharp then it

Xlib XSendEvent click event do not work inside of some windows on Ubuntu 12.04

末鹿安然 提交于 2019-12-11 10:52:13
问题 i'm trying to send mouse click event using xlib in a ubuntu 12.04, all works when i do the click in the desktop bar icons and works when i do click in the title bar of each window (close, minimize, maximize window) but in some windows doing a click inside do not work, only work in my qt creator window but when i click in, for example, Home folder icon then move the mouse inside the folder, i can't do any click in folders or menu bar, only works in the title bar of the windows. Maybe is a bug

Python AppIndicator bindings -> howto check if the menu is open?

柔情痞子 提交于 2019-12-05 11:22:32
问题 Here is a minimal example of an AppIndicator: #!/usr/bin/python import gobject import gtk import appindicator if __name__ == "__main__": ind = appindicator.Indicator("example-simple-client", "gtk-execute", appindicator.CATEGORY_APPLICATION_STATUS) ind.set_status (appindicator.STATUS_ACTIVE) menu = gtk.Menu() menu_items = gtk.MenuItem('Quit') menu.append(menu_items) menu_items.connect("activate", gtk.main_quit) menu_items.show() ind.set_menu(menu) gtk.main() Unfortunately the documentation on

Python AppIndicator bindings -> howto check if the menu is open?

江枫思渺然 提交于 2019-12-03 23:11:25
Here is a minimal example of an AppIndicator: #!/usr/bin/python import gobject import gtk import appindicator if __name__ == "__main__": ind = appindicator.Indicator("example-simple-client", "gtk-execute", appindicator.CATEGORY_APPLICATION_STATUS) ind.set_status (appindicator.STATUS_ACTIVE) menu = gtk.Menu() menu_items = gtk.MenuItem('Quit') menu.append(menu_items) menu_items.connect("activate", gtk.main_quit) menu_items.show() ind.set_menu(menu) gtk.main() Unfortunately the documentation on this is very incomplete. What I'm looking for is a way to check if the AppIndicator menu was opend by

wx.TaskBarIcon on Ubuntu 11.04

非 Y 不嫁゛ 提交于 2019-12-01 06:22:27
问题 There is no tray in Unity under Ubuntu 11.04. How can I make icon appear somewhere in Unity? wx.TaskBarIcon is not appear anywhere. Thanks 回答1: Best answer to give is from the official Documentation: Under X Window System, the window manager must support either the System Tray Protocol by freedesktop.org (WMs used by modern desktop environments such as GNOME >= 2, KDE >= 3 and XFCE >= 4 all do) or the older methods used in GNOME 1.2 and KDE 1 and 2. If it doesn't, the icon will appear as a