summaryrefslogtreecommitdiff
path: root/mate-panel/mate-panel-applet-info.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-05 17:38:52 +0300
committermonsta <[email protected]>2016-01-05 17:38:52 +0300
commit873cedbc95777e7b74960a66883c48945fcecd4c (patch)
tree39524147c0c851dca2f4b931afc7c435d6cd5779 /mate-panel/mate-panel-applet-info.c
parentfbbc44144f21bcd332f4950bc19e8c73c8145f98 (diff)
downloadmate-panel-873cedbc95777e7b74960a66883c48945fcecd4c.tar.bz2
mate-panel-873cedbc95777e7b74960a66883c48945fcecd4c.tar.xz
rename mate-panel-*.{c|h} -> panel-*.{c|h} for consistency
(libmate-panel-applet files are left alone since there are public header files used by all panel applets)
Diffstat (limited to 'mate-panel/mate-panel-applet-info.c')
-rw-r--r--mate-panel/mate-panel-applet-info.c113
1 files changed, 0 insertions, 113 deletions
diff --git a/mate-panel/mate-panel-applet-info.c b/mate-panel/mate-panel-applet-info.c
deleted file mode 100644
index 9f6dfc0a..00000000
--- a/mate-panel/mate-panel-applet-info.c
+++ /dev/null
@@ -1,113 +0,0 @@
-/*
- * mate-panel-applet-info.c
- *
- * Copyright (C) 2010 Carlos Garcia Campos <[email protected]>
- * Copyright (C) 2010 Vincent Untz <[email protected]>
- *
- * 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 2 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., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301, USA.
- */
-
-#include <config.h>
-
-#include "mate-panel-applet-info.h"
-
-struct _MatePanelAppletInfo {
- gchar *iid;
-
- gchar *name;
- gchar *comment;
- gchar *icon;
-
- gchar **old_ids;
-};
-
-MatePanelAppletInfo *
-mate_panel_applet_info_new (const gchar *iid,
- const gchar *name,
- const gchar *comment,
- const gchar *icon,
- const gchar **old_ids)
-{
- MatePanelAppletInfo *info;
- int len;
-
- info = g_slice_new0 (MatePanelAppletInfo);
-
- info->iid = g_strdup (iid);
- info->name = g_strdup (name);
- info->comment = g_strdup (comment);
- info->icon = g_strdup (icon);
-
- /* MateComponent compatibility */
- if (old_ids != NULL) {
- len = g_strv_length ((gchar **) old_ids);
- if (len > 0) {
- int i;
-
- info->old_ids = g_new0 (gchar *, len + 1);
-
- for (i = 0; i < len; i++)
- info->old_ids[i] = g_strdup (old_ids[i]);
- }
- }
-
- return info;
-}
-
-void
-mate_panel_applet_info_free (MatePanelAppletInfo *info)
-{
- if (!info)
- return;
-
- g_free (info->iid);
- g_free (info->name);
- g_free (info->comment);
- g_free (info->icon);
- g_strfreev (info->old_ids);
-
- g_slice_free (MatePanelAppletInfo, info);
-}
-
-const gchar *
-mate_panel_applet_info_get_iid (MatePanelAppletInfo *info)
-{
- return info->iid;
-}
-
-const gchar *
-mate_panel_applet_info_get_name (MatePanelAppletInfo *info)
-{
- return info->name;
-}
-
-const gchar *
-mate_panel_applet_info_get_description (MatePanelAppletInfo *info)
-{
- return info->comment;
-}
-
-const gchar *
-mate_panel_applet_info_get_icon (MatePanelAppletInfo *info)
-{
- return info->icon;
-}
-
-const gchar * const *
-mate_panel_applet_info_get_old_ids (MatePanelAppletInfo *info)
-{
- return (const gchar * const *) info->old_ids;
-}