/pidgin/main: 34cdcc6507d7: Move PIDGIN_WINDOW_ICONIFIED into gt...

Elliott Sales de Andrade qulogic at pidgin.im
Tue Jul 24 04:03:45 EDT 2012


Changeset: 34cdcc6507d7a1f720036addf4bf13af96108a9c
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2012-07-23 03:52 -0400
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/34cdcc6507d7

Description:

Move PIDGIN_WINDOW_ICONIFIED into gtkblist.c.

This file is the only place where this macro is used.

diffstat:

 pidgin/gtkblist.c   |  3 +++
 pidgin/gtkdialogs.h |  3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff --git a/pidgin/gtkblist.c b/pidgin/gtkblist.c
--- a/pidgin/gtkblist.c
+++ b/pidgin/gtkblist.c
@@ -130,6 +130,9 @@
 #define PIDGIN_BUDDY_LIST_GET_PRIVATE(list) \
 	((PidginBuddyListPrivate *)((list)->priv))
 
+#define PIDGIN_WINDOW_ICONIFIED(x) \
+	(gdk_window_get_state(GTK_WIDGET(x)->window) & GDK_WINDOW_STATE_ICONIFIED)
+
 #if !GTK_CHECK_VERSION(2,18,0)
 #define gtk_widget_get_visible(x) GTK_WIDGET_VISIBLE(x)
 #define gtk_widget_has_focus(x) GTK_WIDGET_HAS_FOCUS(x)
diff --git a/pidgin/gtkdialogs.h b/pidgin/gtkdialogs.h
--- a/pidgin/gtkdialogs.h
+++ b/pidgin/gtkdialogs.h
@@ -52,9 +52,6 @@
 void pidgin_dialogs_remove_contact(PurpleContact *);
 void pidgin_dialogs_merge_groups(PurpleGroup *, const char *);
 
-/* This macro should probably be moved elsewhere */
-#define PIDGIN_WINDOW_ICONIFIED(x) (gdk_window_get_state(GTK_WIDGET(x)->window) & GDK_WINDOW_STATE_ICONIFIED)
-
 G_END_DECLS
 
 #endif /* _PIDGINDIALOGS_H_ */



More information about the Commits mailing list