aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-dropdown-button.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-01-27 18:28:58 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-01-27 18:28:58 +0800
commitd2c859ad387d1220524145bc72f5ae0c911c9f40 (patch)
tree1e6cc70e9c84efef7bf84b716f0933f5c02cefaa /widgets/misc/e-dropdown-button.c
parentba1a7da8477e190988d7539705d0da41c2653369 (diff)
downloadgsoc2013-evolution-d2c859ad387d1220524145bc72f5ae0c911c9f40.tar
gsoc2013-evolution-d2c859ad387d1220524145bc72f5ae0c911c9f40.tar.gz
gsoc2013-evolution-d2c859ad387d1220524145bc72f5ae0c911c9f40.tar.bz2
gsoc2013-evolution-d2c859ad387d1220524145bc72f5ae0c911c9f40.tar.lz
gsoc2013-evolution-d2c859ad387d1220524145bc72f5ae0c911c9f40.tar.xz
gsoc2013-evolution-d2c859ad387d1220524145bc72f5ae0c911c9f40.tar.zst
gsoc2013-evolution-d2c859ad387d1220524145bc72f5ae0c911c9f40.zip
Fix the API to EDropdownButton by removing args that don't make much
sense. svn path=/trunk/; revision=7854
Diffstat (limited to 'widgets/misc/e-dropdown-button.c')
-rw-r--r--widgets/misc/e-dropdown-button.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/widgets/misc/e-dropdown-button.c b/widgets/misc/e-dropdown-button.c
index b40d31733a..c9aba7048e 100644
--- a/widgets/misc/e-dropdown-button.c
+++ b/widgets/misc/e-dropdown-button.c
@@ -144,9 +144,7 @@ init (EDropdownButton *dropdown_button)
void
e_dropdown_button_construct (EDropdownButton *dropdown_button,
const char *label_text,
- GtkMenu *menu,
- GnomeUIInfo *ui_info,
- void *data)
+ GtkMenu *menu)
{
EDropdownButtonPrivate *priv;
GtkWidget *hbox;
@@ -159,7 +157,6 @@ e_dropdown_button_construct (EDropdownButton *dropdown_button,
g_return_if_fail (label_text != NULL);
g_return_if_fail (menu != NULL);
g_return_if_fail (GTK_IS_MENU (menu));
- g_return_if_fail (ui_info != NULL);
priv = dropdown_button->priv;
@@ -179,16 +176,12 @@ e_dropdown_button_construct (EDropdownButton *dropdown_button,
gtk_widget_show (arrow);
priv->menu = GTK_WIDGET (menu);
- gnome_app_fill_menu_with_data (GTK_MENU_SHELL (priv->menu), ui_info,
- priv->accel_group, TRUE, 0, data);
}
/**
* e_dropdown_button_new:
* @label_text:
* @menu:
- * @ui_info:
- * @data:
*
* Create a new dropdown button.
*
@@ -196,21 +189,17 @@ e_dropdown_button_construct (EDropdownButton *dropdown_button,
**/
GtkWidget *
e_dropdown_button_new (const char *label_text,
- GtkMenu *menu,
- GnomeUIInfo *ui_info,
- void *data)
+ GtkMenu *menu)
{
GtkWidget *widget;
g_return_val_if_fail (label_text != NULL, NULL);
g_return_val_if_fail (menu != NULL, NULL);
g_return_val_if_fail (GTK_IS_MENU (menu), NULL);
- g_return_val_if_fail (ui_info != NULL, NULL);
widget = gtk_type_new (e_dropdown_button_get_type ());
- e_dropdown_button_construct (E_DROPDOWN_BUTTON (widget), label_text, menu, ui_info, data);
-
+ e_dropdown_button_construct (E_DROPDOWN_BUTTON (widget), label_text, menu);
return widget;
}