im.pidgin.pidgin.2.1.0

Sadrul Habib Chowdhury imadil at gmail.com
Mon May 28 18:21:38 EDT 2007


* Gabriel Schulhof had this to say on [28 May 2007, 23:14:02 +0300]:
[snip]
> Unfortunately, this would also mean re-introducing uglyness of the form
> 
> #ifdef USE_HILDON
> gtk_box_pack_start(box, container, TRUE, TRUE, 0);
> #else /* !USE_HILDON */
> gtk_box_pack_start(box, _pidgin_make_container_scrollable(container,
> dialog), TRUE, TRUE, 0);
> #endif /* USE_HILDON */
> 
> everywhere there's a container full of widgets that needs scrolling on a
> tablet, such as every gtkprefs notebook page, new/edit account details,
> Add Buddy, Add Chat, plugin preferences, et. al.
> 

Perhaps something like the following will work: (untested)

#ifdef USE_HILDON

#define gtk_box_pack_start(box, container, a, b, c) \
	gtk_box_pack_start(box,  \
		_pidgin_make_container_scrollable(container, \
			dialog), a, b, c)

#else

#define gtk_box_pack_start(box, container, a, b, c) \
	gtk_box_pack_start(box, container, a, b, c)

#endif

If it does work, then we can just add this define in some header that
everyone uses.

Sadrul




More information about the Devel mailing list