[Xfce4-commits] [panel-plugins/xfce4-hardware-monitor-plugin] 18/96: Finally properly add the Gtk widget to the panel
noreply at xfce.org
noreply at xfce.org
Thu Nov 27 22:20:23 CET 2014
This is an automated email from the git hooks/post-receive script.
nick pushed a commit to branch master
in repository panel-plugins/xfce4-hardware-monitor-plugin.
commit 81abf7d1b4c4f9dec09873deac1d57b2cf1be5b3
Author: Omega Weapon <OmegaPhil at gmail.com>
Date: Tue Oct 29 21:27:56 2013 +0000
Finally properly add the Gtk widget to the panel
---
src/applet.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/applet.cpp b/src/applet.cpp
index c5e08e2..541f994 100644
--- a/src/applet.cpp
+++ b/src/applet.cpp
@@ -296,6 +296,11 @@ Applet::Applet(XfcePanelPlugin *plugin)
xfce_panel_plugin_menu_show_configure(panel_applet);
xfce_panel_plugin_menu_show_about(panel_applet);
+ /* Add applet to panel - I need to turn the Applet (which inherits from
+ * Gtk::EventBox) into a GtkWidget* - to do this I get at the GObject
+ * pointer underneath the gtkmm layer */
+ gtk_container_add(GTK_CONTAINER(plugin), GTK_WIDGET(this->gobj()));
+
// Initialising timer to run every second (by default) to trigger main_loop
timer =
Glib::signal_timeout().connect(sigc::mem_fun(*this, &Applet::main_loop),
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list