diff options
Diffstat (limited to 'mate-dictionary/src/gdict-sidebar.c')
-rw-r--r-- | mate-dictionary/src/gdict-sidebar.c | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/mate-dictionary/src/gdict-sidebar.c b/mate-dictionary/src/gdict-sidebar.c index 1eacb15b..317f4cbf 100644 --- a/mate-dictionary/src/gdict-sidebar.c +++ b/mate-dictionary/src/gdict-sidebar.c @@ -1,28 +1,27 @@ -/* gdict-sidebar.c - sidebar widget +/* Copyright (C) 2006 Emmanuele Bassi <[email protected]> + * Copyright (C) 2012-2021 MATE Developers * - * Copyright (C) 2006 Emmanuele Bassi <[email protected]> + * Based on the equivalent widget from Evince by Jonathan Blandford. + * Copyright (C) 2004 Red Hat, Inc. * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * This file is part of MATE Utils. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. + * MATE Utils is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. * - * You should have received a copy of the GNU Lesser General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * MATE Utils is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * Based on the equivalent widget from Evince - * by Jonathan Blandford, - * Copyright (C) 2004 Red Hat, Inc. + * You should have received a copy of the GNU General Public License + * along with MATE Utils. If not, see <https://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include <config.h> #endif #include <stdio.h> @@ -34,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 @@ -73,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) @@ -91,7 +92,7 @@ sidebar_page_new (const gchar *id, return page; } -void +static void sidebar_page_free (SidebarPage *page) { if (G_LIKELY (page)) @@ -410,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), |