summaryrefslogtreecommitdiff
path: root/mate-dictionary/src/gdict-sidebar.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-dictionary/src/gdict-sidebar.c')
-rw-r--r--mate-dictionary/src/gdict-sidebar.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mate-dictionary/src/gdict-sidebar.c b/mate-dictionary/src/gdict-sidebar.c
index 5d2ea36e..317f4cbf 100644
--- a/mate-dictionary/src/gdict-sidebar.c
+++ b/mate-dictionary/src/gdict-sidebar.c
@@ -1,4 +1,5 @@
/* Copyright (C) 2006 Emmanuele Bassi <[email protected]>
+ * Copyright (C) 2012-2021 MATE Developers
*
* Based on the equivalent widget from Evince by Jonathan Blandford.
* Copyright (C) 2004 Red Hat, Inc.
@@ -32,6 +33,8 @@
#include <gdk/gdkkeysyms.h>
#include <glib/gi18n.h>
+#include <libmate-desktop/mate-image-menu-item.h>
+
#include "gdict-sidebar.h"
typedef struct
@@ -71,7 +74,7 @@ static GQuark sidebar_page_id_quark = 0;
G_DEFINE_TYPE_WITH_PRIVATE (GdictSidebar, gdict_sidebar, GTK_TYPE_BOX);
-SidebarPage *
+static SidebarPage *
sidebar_page_new (const gchar *id,
const gchar *name,
GtkWidget *widget)
@@ -89,7 +92,7 @@ sidebar_page_new (const gchar *id,
return page;
}
-void
+static void
sidebar_page_free (SidebarPage *page)
{
if (G_LIKELY (page))
@@ -408,7 +411,7 @@ gdict_sidebar_add_page (GdictSidebar *sidebar,
NULL);
/* add the menu item for the page */
- menu_item = gtk_image_menu_item_new_with_label (page_name);
+ menu_item = mate_image_menu_item_new_with_label (page_name);
g_object_set_qdata_full (G_OBJECT (menu_item),
sidebar_page_id_quark,
g_strdup (page_id),