[gtk] widget: Remove useless macro
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] widget: Remove useless macro
- Date: Tue, 20 Mar 2018 23:46:06 +0000 (UTC)
commit 4f87861c9a2a07659da49cec9cbeb0c30e6e06ff
Author: Benjamin Otte <otte redhat com>
Date: Tue Mar 20 04:40:09 2018 +0100
widget: Remove useless macro
gtk/gtkwidget.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 9c8b5acb31..38e1db7088 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -435,8 +435,6 @@
#define GTK_STATE_FLAGS_DO_PROPAGATE (GTK_STATE_FLAG_INSENSITIVE|GTK_STATE_FLAG_BACKDROP)
-#define WIDGET_CLASS(w) GTK_WIDGET_GET_CLASS (w)
-
typedef struct {
gchar *name; /* Name of the template automatic child */
gboolean internal_child; /* Whether the automatic widget should be exported as an
<internal-child> */
@@ -5972,10 +5970,10 @@ gtk_widget_activate (GtkWidget *widget)
{
g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
- if (WIDGET_CLASS (widget)->activate_signal)
+ if (GTK_WIDGET_GET_CLASS (widget)->activate_signal)
{
/* FIXME: we should eventually check the signals signature here */
- g_signal_emit (widget, WIDGET_CLASS (widget)->activate_signal, 0);
+ g_signal_emit (widget, GTK_WIDGET_GET_CLASS (widget)->activate_signal, 0);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]