[gtk/wip/exalm/buttons: 30/32] 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: 30/32] menubutton: Remove a random g_return_if_fail()
- Date: Thu, 24 Jun 2021 18:14:03 +0000 (UTC)
commit 51a754547ee6745b5fb1d211db6085f93e6af514
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 d27bb4f393..4a26b783fd 100644
--- a/gtk/gtkmenubutton.c
+++ b/gtk/gtkmenubutton.c
@@ -895,7 +895,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]