diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-05-25 10:58:30 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-05-25 10:58:30 +0200 |
commit | 2c113b49296184a057bd64e89d2e3240c8262f44 (patch) | |
tree | f9bb723f231618ac028215e1e1b509030c066121 | |
parent | 54621a3d3ece6ddf0bdd9868b8d0405c396c59b2 (diff) | |
download | ayatana-indicator-messages-2c113b49296184a057bd64e89d2e3240c8262f44.tar.gz ayatana-indicator-messages-2c113b49296184a057bd64e89d2e3240c8262f44.tar.bz2 ayatana-indicator-messages-2c113b49296184a057bd64e89d2e3240c8262f44.zip |
appmenuitem: remove name-changed signal
-rw-r--r-- | src/app-menu-item.c | 17 | ||||
-rw-r--r-- | src/app-menu-item.h | 8 |
2 files changed, 0 insertions, 25 deletions
diff --git a/src/app-menu-item.c b/src/app-menu-item.c index 5badfee..b18b7c9 100644 --- a/src/app-menu-item.c +++ b/src/app-menu-item.c @@ -31,13 +31,6 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #include "app-menu-item.h" #include "dbus-data.h" -enum { - NAME_CHANGED, - LAST_SIGNAL -}; - -static guint signals[LAST_SIGNAL] = { 0 }; - typedef struct _AppMenuItemPrivate AppMenuItemPrivate; struct _AppMenuItemPrivate @@ -72,14 +65,6 @@ app_menu_item_class_init (AppMenuItemClass *klass) g_type_class_add_private (klass, sizeof (AppMenuItemPrivate)); object_class->dispose = app_menu_item_dispose; - - signals[NAME_CHANGED] = g_signal_new(APP_MENU_ITEM_SIGNAL_NAME_CHANGED, - G_TYPE_FROM_CLASS(klass), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (AppMenuItemClass, name_changed), - NULL, NULL, - g_cclosure_marshal_VOID__STRING, - G_TYPE_NONE, 1, G_TYPE_STRING); } static void @@ -191,8 +176,6 @@ app_menu_item_set_appinfo (AppMenuItem *self, g_free(name); } - g_signal_emit(G_OBJECT(self), signals[NAME_CHANGED], 0, app_menu_item_get_name(self), TRUE); - g_free(label); g_free(iconstr); g_object_unref (launch); diff --git a/src/app-menu-item.h b/src/app-menu-item.h index 785a997..cec5bb0 100644 --- a/src/app-menu-item.h +++ b/src/app-menu-item.h @@ -33,19 +33,11 @@ G_BEGIN_DECLS #define IS_APP_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), APP_MENU_ITEM_TYPE)) #define APP_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), APP_MENU_ITEM_TYPE, AppMenuItemClass)) -#define APP_MENU_ITEM_SIGNAL_COUNT_CHANGED "count-changed" -#define APP_MENU_ITEM_SIGNAL_NAME_CHANGED "name-changed" -#define APP_MENU_ITEM_SIGNAL_SHORTCUT_ADDED "shortcut-added" -#define APP_MENU_ITEM_SIGNAL_SHORTCUT_REMOVED "shortcut-removed" - typedef struct _AppMenuItem AppMenuItem; typedef struct _AppMenuItemClass AppMenuItemClass; struct _AppMenuItemClass { GObjectClass parent_class; - - void (* count_changed) (guint count); - void (* name_changed) (gchar * name); }; struct _AppMenuItem { |