[Xfce4-commits] [panel-plugins/xfce4-hardware-monitor-plugin] 15/18: Remove unused original main file

noreply at xfce.org noreply at xfce.org
Tue Jun 28 21:33:37 CEST 2016


This is an automated email from the git hooks/post-receive script.

omegaphil pushed a commit to branch omegaphil/graph-disk-io
in repository panel-plugins/xfce4-hardware-monitor-plugin.

commit e72c2f94df942d53ece322c700f5f43a727ff65a
Author: OmegaPhil <OmegaPhil at startmail.com>
Date:   Fri Jun 24 18:02:26 2016 +0100

    Remove unused original main file
---
 src/main.cpp.old | 77 --------------------------------------------------------
 1 file changed, 77 deletions(-)

diff --git a/src/main.cpp.old b/src/main.cpp.old
deleted file mode 100644
index 90aa9f2..0000000
--- a/src/main.cpp.old
+++ /dev/null
@@ -1,77 +0,0 @@
-/* Main program.
- *
- * Copyright (c) 2003, 04 Ole Laursen.
- *
- * This program is free software; you can redistribute it and/or 
- * modify it under the terms of the GNU General Public License as 
- * published by the Free Software Foundation; either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA.
- */
-
-#include <config.h>
-
-#include <unistd.h>		// for nice
-#include <libintl.h>
-
-#include <libgnomecanvasmm/init.h>
-#include <gtkmm/main.h>
-
-#include <libgnomeui/gnome-ui-init.h>
-#include <libgnomeui/gnome-client.h>
-#include <panel-applet.h>
-
-#include "applet.hpp"
-#include "helpers.hpp"
-#include "i18n.hpp"
-
-// This file is no longer used - everything has been moved into applet.cpp
-gboolean hardware_monitor_factory(PanelApplet *panel_applet, const gchar *iid,
-				  void *)
-{
-  // construct applet
-  Applet *applet = manage(new Applet(panel_applet));
-  applet->show();
-  
-  gtk_container_add(GTK_CONTAINER(panel_applet), GTK_WIDGET(applet->gobj()));
-  gtk_widget_show(GTK_WIDGET(panel_applet));
-  
-  return true;
-}
-
-int main(int argc, char *argv[])
-{
-  nice(5);			// don't eat up too much CPU
-
-  Gtk::Main main(argc, argv);
-  Gnome::Canvas::init();
-
-  // this is necessary for panel applets
-  gnome_program_init(PACKAGE, VERSION,
-		     LIBGNOMEUI_MODULE,
-		     argc, argv, GNOME_CLIENT_PARAM_SM_CONNECT, FALSE,
-		     NULL);
-		   
-  try {
-    // i18n
-    bindtextdomain(GETTEXT_PACKAGE, GNOMELOCALEDIR);
-    bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
-    textdomain(GETTEXT_PACKAGE);
-
-    panel_applet_factory_main("OAFIID:HardwareMonitor_Factory",
-			      PANEL_TYPE_APPLET,
-			      &hardware_monitor_factory, 0);
-  }
-  catch(const Glib::Error &ex) {
-    fatal_error(ex.what());
-  }
-}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list