aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-05-24 15:17:47 -0400
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-05-24 15:17:47 -0400
commit2c0fa18b2452ab23f70ffb3feae21a88b8f05053 (patch)
tree391b77c9dea8e0d5a3af78de3deea781bfb6075d
parent725c0adef66ff7c25ad683cf78304196c868aff3 (diff)
downloadayatana-ido-2c0fa18b2452ab23f70ffb3feae21a88b8f05053.tar.gz
ayatana-ido-2c0fa18b2452ab23f70ffb3feae21a88b8f05053.tar.bz2
ayatana-ido-2c0fa18b2452ab23f70ffb3feae21a88b8f05053.zip
GtkMenuItemFactory -> UbuntuMenuItemFactory
-rw-r--r--src/idomenuitemfactory.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/idomenuitemfactory.c b/src/idomenuitemfactory.c
index 7f8273d..c8e61f4 100644
--- a/src/idomenuitemfactory.c
+++ b/src/idomenuitemfactory.c
@@ -18,6 +18,7 @@
*/
#include <gtk/gtk.h>
+#include <gtk/ubuntu-private.h>
#include "idoactionhelper.h"
#include "idousermenuitem.h"
@@ -30,11 +31,11 @@ typedef GObject IdoMenuItemFactory;
typedef GObjectClass IdoMenuItemFactoryClass;
GType ido_menu_item_factory_get_type (void);
-static void ido_menu_item_factory_interface_init (GtkMenuItemFactoryInterface *iface);
+static void ido_menu_item_factory_interface_init (UbuntuMenuItemFactoryInterface *iface);
G_DEFINE_TYPE_WITH_CODE (IdoMenuItemFactory, ido_menu_item_factory, G_TYPE_OBJECT,
- G_IMPLEMENT_INTERFACE (GTK_TYPE_MENU_ITEM_FACTORY, ido_menu_item_factory_interface_init)
- g_io_extension_point_implement (GTK_MENU_ITEM_FACTORY_EXTENSION_POINT_NAME,
+ G_IMPLEMENT_INTERFACE (UBUNTU_TYPE_MENU_ITEM_FACTORY, ido_menu_item_factory_interface_init)
+ g_io_extension_point_implement (UBUNTU_MENU_ITEM_FACTORY_EXTENSION_POINT_NAME,
g_define_type_id, "ido", 0);)
/**
@@ -134,10 +135,10 @@ create_user_menu_item (GMenuItem *menuitem,
}
static GtkMenuItem *
-ido_menu_item_factory_create_menu_item (GtkMenuItemFactory *factory,
- const gchar *type,
- GMenuItem *menuitem,
- GActionGroup *actions)
+ido_menu_item_factory_create_menu_item (UbuntuMenuItemFactory *factory,
+ const gchar *type,
+ GMenuItem *menuitem,
+ GActionGroup *actions)
{
GtkMenuItem *item = NULL;
@@ -153,7 +154,7 @@ ido_menu_item_factory_class_init (IdoMenuItemFactoryClass *class)
}
static void
-ido_menu_item_factory_interface_init (GtkMenuItemFactoryInterface *iface)
+ido_menu_item_factory_interface_init (UbuntuMenuItemFactoryInterface *iface)
{
iface->create_menu_item = ido_menu_item_factory_create_menu_item;
}