/pidgin/main: fdc05600d1fb: Fix gtk2 build

Tomasz Wasilczyk twasilczyk at pidgin.im
Tue Feb 11 06:41:33 EST 2014


Changeset: fdc05600d1fb27e68526dddbf06d8a44b8645463
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2014-02-11 12:41 +0100
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/fdc05600d1fb

Description:

Fix gtk2 build

diffstat:

 pidgin/gtk3compat.h |  12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diffs (22 lines):

diff --git a/pidgin/gtk3compat.h b/pidgin/gtk3compat.h
--- a/pidgin/gtk3compat.h
+++ b/pidgin/gtk3compat.h
@@ -94,6 +94,18 @@ gtk_button_box_new(GtkOrientation orient
 		return gtk_vbutton_box_new();
 }
 
+static inline GtkWidget *
+gtk_paned_new(GtkOrientation orientation)
+{
+	g_return_val_if_fail(orientation == GTK_ORIENTATION_HORIZONTAL ||
+		orientation == GTK_ORIENTATION_VERTICAL, NULL);
+
+	if (orientation == GTK_ORIENTATION_HORIZONTAL)
+		return gtk_hpaned_new();
+	else /* GTK_ORIENTATION_VERTICAL */
+		return gtk_vpaned_new();
+}
+
 #if !GTK_CHECK_VERSION(2,24,0)
 
 #define gdk_x11_set_sm_client_id gdk_set_sm_client_id



More information about the Commits mailing list