mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 13:32:48 -05:00
Use gtkcompat.h to slim down a few ifdefs.
Now that I've got a general place to centralise handling of at least the simple differences between GTK 1 and 2, I should use it wherever possible. So this commit removes just a small number of ifdefs which are either obsoleted by definitions already in gtkcompat.h (like set_size_request vs set_usize), or can easily be replaced by adding another (e.g. gtk_color_selection_set_has_opacity_control).
This commit is contained in:
@ -2562,11 +2562,9 @@ unifontsel *unifontsel_new(const char *wintitle)
|
||||
gtk_label_set_text(GTK_LABEL(label), "48000");
|
||||
gtk_widget_size_request(label, &req);
|
||||
size_width = req.width;
|
||||
#if GTK_CHECK_VERSION(2,10,0)
|
||||
g_object_ref_sink(label);
|
||||
g_object_unref(label);
|
||||
#else
|
||||
g_object_ref_sink(G_OBJECT(label));
|
||||
#if GTK_CHECK_VERSION(2,10,0)
|
||||
g_object_unref(label);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user