[gtk: 1/2] menubutton: Remove obsolete private method
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] menubutton: Remove obsolete private method
- Date: Tue, 29 Sep 2020 21:52:38 +0000 (UTC)
commit 7ad42df727d05fb8f54f99dc7c092db567186ca4
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Sep 29 20:46:18 2020 +0200
menubutton: Remove obsolete private method
It was only added for the fallback app menu in headerbars, which
has been removed in the meantime.
gtk/gtkmenubutton.c | 7 -------
gtk/gtkmenubuttonprivate.h | 3 ---
2 files changed, 10 deletions(-)
---
diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c
index bbfaf78733..54fca43b33 100644
--- a/gtk/gtkmenubutton.c
+++ b/gtk/gtkmenubutton.c
@@ -916,13 +916,6 @@ gtk_menu_button_popdown (GtkMenuButton *menu_button)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (menu_button->button), FALSE);
}
-void
-gtk_menu_button_add_child (GtkMenuButton *menu_button,
- GtkWidget *new_child)
-{
- gtk_button_set_child (GTK_BUTTON (menu_button->button), new_child);
-}
-
/**
* gtk_menu_button_set_create_popup_func:
* @menu_button: a #GtkMenuButton
diff --git a/gtk/gtkmenubuttonprivate.h b/gtk/gtkmenubuttonprivate.h
index aaddeea39b..9fb6cee70a 100644
--- a/gtk/gtkmenubuttonprivate.h
+++ b/gtk/gtkmenubuttonprivate.h
@@ -25,9 +25,6 @@
G_BEGIN_DECLS
-void gtk_menu_button_add_child (GtkMenuButton *button,
- GtkWidget *child);
-
G_END_DECLS
#endif /* __GTK_MENU_BUTTON_PRIVATE_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]