commit 10993cfa64528fe3cdadf4131c1a0efaca40060e
parent fb286ec8af9d774cc532e896b35798b71c18e00b
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Sat, 3 Nov 2018 19:31:31 +0100
Remove last remnants of GtkCMOptionMenu from code.
Diffstat:
2 files changed, 0 insertions(+), 42 deletions(-)
diff --git a/src/gtk/menu.c b/src/gtk/menu.c
@@ -26,9 +26,6 @@
#include <glib/gi18n.h>
#include <gtk/gtk.h>
-#if !GTK_CHECK_VERSION(3, 0, 0)
-#include "gtkcmoptionmenu.h"
-#endif
#include "menu.h"
#include "utils.h"
#include "gtkutils.h"
@@ -210,39 +207,3 @@ void menu_button_position(GtkMenu *menu, gint *x, gint *y, gboolean *push_in,
if (*y + mreq.height >= monitor.height)
*y -= mreq.height;
}
-
-#if !GTK_CHECK_VERSION(3, 0, 0)
-gint menu_find_option_menu_index(GtkCMOptionMenu *optmenu, gpointer data,
- GCompareFunc func)
-{
- GtkWidget *menu;
- GtkWidget *menuitem;
- gpointer menu_data;
- GList *children;
- GList *cur;
- gint n, found = -1;
-
- menu = gtk_cmoption_menu_get_menu(optmenu);
- children = gtk_container_get_children(GTK_CONTAINER(GTK_MENU_SHELL(menu)));
-
- for (cur = children, n = 0;
- cur != NULL; cur = cur->next, n++) {
- menuitem = GTK_WIDGET(cur->data);
- menu_data = g_object_get_data(G_OBJECT(menuitem),
- MENU_VAL_ID);
- if (func) {
- if (func(menu_data, data) == 0) {
- found = n;
- break;
- }
- } else if (menu_data == data) {
- found = n;
- break;
- }
- }
-
- g_list_free(children);
-
- return found;
-}
-#endif
diff --git a/src/gtk/menu.h b/src/gtk/menu.h
@@ -22,9 +22,6 @@
#include <glib.h>
#include <gtk/gtk.h>
-#if !GTK_CHECK_VERSION(3, 0, 0)
-#include "gtkcmoptionmenu.h"
-#endif
#define MENU_VAL_ID "Claws::Menu::ValueID"
#define MENU_VAL_DATA "Claws::Menu::ValueDATA"