diff options
author | Christian Dywan <christian@twotoasts.de> | 2011-11-28 23:37:34 +0100 |
---|---|---|
committer | Christian Dywan <christian@twotoasts.de> | 2011-11-28 23:37:34 +0100 |
commit | 569c49813aa3073d1be1cf56706174765c660d08 (patch) | |
tree | a1f71f1fe1df0f5edade372a81e09d205e83cac8 /katze/gtk3-compat.h | |
parent | 68db74acb5242be244c34af4dc9ea50a809c283a (diff) | |
download | midori-569c49813aa3073d1be1cf56706174765c660d08.tar.gz |
Define H and V widget functions for GTK+3
The horizontal variants are gone from the API.
gtk_rc_get_theme_dir has been deprecated, there is
no replacement so we do the equivalent lookup.
Right-aligned menu items are deprecated.
For now defining gtk_widget_render_icon and
gtk_widget_set_size_request gets rid of warnings.
Diffstat (limited to 'katze/gtk3-compat.h')
-rw-r--r-- | katze/gtk3-compat.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/katze/gtk3-compat.h b/katze/gtk3-compat.h index c1a2dd5f..fddfe977 100644 --- a/katze/gtk3-compat.h +++ b/katze/gtk3-compat.h @@ -19,6 +19,15 @@ G_BEGIN_DECLS #define gtk_hbox_new(hmg,spc) g_object_new (GTK_TYPE_BOX, \ "homogeneous", hmg, "spacing", spc, \ "orientation", GTK_ORIENTATION_HORIZONTAL, NULL) + #define gtk_hseparator_new() g_object_new (GTK_TYPE_SEPARATOR, NULL) + #define gtk_hpaned_new() g_object_new (GTK_TYPE_PANED, NULL) + #define gtk_vpaned_new() g_object_new (GTK_TYPE_PANED, \ + "orientation", GTK_ORIENTATION_VERTICAL, NULL) + /* FIXME */ + #define gtk_widget_render_icon(wdgt, stk, sz, dtl) \ + gtk_widget_render_icon_pixbuf(wdgt, stk, sz) + #define gtk_widget_size_request(wdgt, req) \ + gtk_widget_get_preferred_size(wdgt, req, NULL) #endif #if !GLIB_CHECK_VERSION (2, 32, 0) |