[gtk/wip/exalm/buttons: 4/5] menubutton: Remove a random g_return_if_fail()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/exalm/buttons: 4/5] menubutton: Remove a random g_return_if_fail()
- Date: Mon, 21 Jun 2021 11:27:13 +0000 (UTC)
commit 6b34233f50604e5be3617984a8f763c4dea710e6
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Jun 21 14:32:44 2021 +0500
menubutton: Remove a random g_return_if_fail()
There's already one above.
gtk/gtkmenubutton.c | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c
index 5e6ccfdcc2..16831d33b1 100644
--- a/gtk/gtkmenubutton.c
+++ b/gtk/gtkmenubutton.c
@@ -901,7 +901,6 @@ gtk_menu_button_set_label (GtkMenuButton *menu_button,
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
label_widget = gtk_label_new (label);
- g_return_if_fail (GTK_IS_MENU_BUTTON (menu_button));
gtk_label_set_xalign (GTK_LABEL (label_widget), 0);
gtk_label_set_use_underline (GTK_LABEL (label_widget),
gtk_button_get_use_underline (GTK_BUTTON (menu_button->button)));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]