[Xfce4-commits] [panel-plugins/xfce4-hardware-monitor-plugin] 11/96: Experiment to see if failing Gtk::Main instantiation is needed at all
noreply at xfce.org
noreply at xfce.org
Thu Nov 27 22:20:16 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 5cceb49887a4695f28dde16072861a0c5d3a2f25
Author: Omega Weapon <OmegaPhil at gmail.com>
Date: Sun Oct 27 13:02:41 2013 +0000
Experiment to see if failing Gtk::Main instantiation is needed at all
---
src/applet.cpp | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/applet.cpp b/src/applet.cpp
index cf091c1..4c81e03 100644
--- a/src/applet.cpp
+++ b/src/applet.cpp
@@ -56,12 +56,14 @@ extern "C" void applet_construct(XfcePanelPlugin* plugin)
{
nice(5); // Don't eat up too much CPU
- // Initialising GTK and GNOME canvas
- Gtk::Main main(NULL, NULL);
- Gnome::Canvas::init();
-
try {
+ // Initialising GTK and GNOME canvas
+ /* Testing not initialising GTK, as this isn't a standalone application
+ * but a library? Otherwise seems to fail */
+ //Gtk::Main main(NULL, NULL);
+ Gnome::Canvas::init();
+
// i18n
xfce_textdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list