* sync with main changes of 2002-10-04
[claws.git] / src / menu.h
index d4a1fd2e804fb39712a40cbcea674cdf98e750ff..0ec4b384cb69c609686b650ba8dae084332d6b19 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999,2000 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2002 Hiroyuki Yamamoto
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -25,6 +25,7 @@
 #include <gtk/gtkitemfactory.h>
 #include <gtk/gtkmenu.h>
 #include <gtk/gtkmenushell.h>
+#include <gtk/gtkoptionmenu.h>
 
 #define MENUITEM_ADD(menu, menuitem, label, data) \
 { \
@@ -36,6 +37,9 @@
                                         GINT_TO_POINTER(data)); \
 }
 
+#define menu_set_insensitive_all(menu_shell) \
+       menu_set_sensitive_all(menu_shell, FALSE);
+
 GtkWidget *menubar_create      (GtkWidget              *window,
                                 GtkItemFactoryEntry    *entries,
                                 guint                   n_entries,
@@ -54,7 +58,9 @@ GtkWidget *popupmenu_create(GtkWidget *window,
 void menu_set_sensitive                (GtkItemFactory         *ifactory,
                                 const gchar            *path,
                                 gboolean                sensitive);
-void menu_set_insensitive_all  (GtkMenuShell           *menu_shell);
+void menu_set_sensitive_all    (GtkMenuShell           *menu_shell,
+                                gboolean                sensitive);
+
 void menu_set_toggle           (GtkItemFactory         *ifactory,
                                 const gchar            *path,
                                 gboolean                active);
@@ -65,4 +71,8 @@ void menu_button_position     (GtkMenu                *menu,
                                 gint                   *y,
                                 gpointer                user_data);
 
+gint menu_find_option_menu_index(GtkOptionMenu         *optmenu,
+                                gpointer                data,
+                                GCompareFunc            func);
+
 #endif /* __MENU_H__ */