aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-11-08 11:19:19 -0500
committerTed Gould <ted@gould.cx>2010-11-08 11:19:19 -0500
commitde1ea7a175f0913b5a5421e666dd2d38d864fe47 (patch)
treea5d98303f56ae64b79a13da92bf4480a9fd6ca31 /src
parent9c008cd03484b38b968618f1877c64215ba2c2fb (diff)
downloadlibayatana-appindicator-de1ea7a175f0913b5a5421e666dd2d38d864fe47.tar.gz
libayatana-appindicator-de1ea7a175f0913b5a5421e666dd2d38d864fe47.tar.bz2
libayatana-appindicator-de1ea7a175f0913b5a5421e666dd2d38d864fe47.zip
Adding an API function to build the menu from a desktop file
Diffstat (limited to 'src')
-rw-r--r--src/app-indicator.c15
-rw-r--r--src/app-indicator.h4
2 files changed, 19 insertions, 0 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c
index 4f7daa8..4734b80 100644
--- a/src/app-indicator.c
+++ b/src/app-indicator.c
@@ -2106,3 +2106,18 @@ app_indicator_get_ordering_index (AppIndicator *self)
}
}
+/**
+ app_indicator_build_menu_from_desktop:
+ @self: The #AppIndicator object to use
+ @desktop_file: A path to the desktop file to build the menu from
+
+ This function allows for building the Application Indicator menu
+ from a static desktop file.
+*/
+void
+app_indicator_build_menu_from_desktop (AppIndicator * self, const gchar * desktop_file)
+{
+
+
+
+}
diff --git a/src/app-indicator.h b/src/app-indicator.h
index ce152bb..cfc9565 100644
--- a/src/app-indicator.h
+++ b/src/app-indicator.h
@@ -280,6 +280,10 @@ const gchar * app_indicator_get_label (AppIndicator *
const gchar * app_indicator_get_label_guide (AppIndicator *self);
guint32 app_indicator_get_ordering_index (AppIndicator *self);
+/* Helpers */
+void app_indicator_build_menu_from_desktop (AppIndicator * self,
+ const gchar * desktop_file);
+
G_END_DECLS
/**