Commit c3f5c92d authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

applet: remove unused functions

parent 5e1bd6b8
......@@ -812,65 +812,12 @@ panel_applet_get_id (AppletInfo *info)
return info->id;
}
const char *
panel_applet_get_id_by_widget (GtkWidget *applet_widget)
{
GSList *l;
if (!applet_widget)
return NULL;
for (l = registered_applets; l; l = l->next) {
AppletInfo *info = l->data;
if (info->widget == applet_widget)
return info->id;
}
return NULL;
}
AppletInfo *
panel_applet_get_by_id (const char *id)
{
GSList *l;
for (l = registered_applets; l; l = l->next) {
AppletInfo *info = l->data;
if (!strcmp (info->id, id))
return info;
}
return NULL;
}
GSList *
panel_applet_list_applets (void)
{
return registered_applets;
}
AppletInfo *
panel_applet_get_by_type (PanelObjectType object_type, GdkScreen *screen)
{
GSList *l;
for (l = registered_applets; l; l = l->next) {
AppletInfo *info = l->data;
if (info->type == object_type) {
if (screen) {
if (screen == gtk_widget_get_screen (info->widget))
return info;
} else
return info;
}
}
return NULL;
}
gboolean
panel_applet_activate_main_menu (guint32 activate_time)
{
......@@ -971,14 +918,6 @@ panel_applet_register (GtkWidget *applet,
return info;
}
GSettings *
panel_applet_get_settings (AppletInfo *applet)
{
g_return_val_if_fail (applet != NULL, NULL);
return applet->settings;
}
gboolean
panel_applet_can_freely_move (AppletInfo *applet)
{
......
......@@ -9,7 +9,6 @@
G_BEGIN_DECLS
#define APPLET_EVENT_MASK (GDK_BUTTON_PRESS_MASK | \
GDK_BUTTON_RELEASE_MASK | \
GDK_POINTER_MOTION_MASK | \
......@@ -53,9 +52,6 @@ AppletInfo *panel_applet_register (GtkWidget *applet,
GDestroyNotify data_destroy);
const char *panel_applet_get_id (AppletInfo *info);
const char *panel_applet_get_id_by_widget (GtkWidget *widget);
AppletInfo *panel_applet_get_by_id (const char *id);
AppletInfo *panel_applet_get_by_type (PanelObjectType object_type, GdkScreen *screen);
gboolean panel_applet_activate_main_menu (guint32 activate_time);
......@@ -71,13 +67,10 @@ void panel_applet_add_callback (AppletInfo *info,
AppletUserMenu *panel_applet_get_callback (GList *user_menu,
const gchar *name);
void panel_applet_save_position (AppletInfo *applet_info,
const char *id,
gboolean immediate);
GSettings *panel_applet_get_settings (AppletInfo *applet);
/* True if all the keys relevant to moving are writable
(position, toplevel_id, panel_right_stick) */
gboolean panel_applet_can_freely_move (AppletInfo *applet);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment