Commit d08c5873 authored by Adrien Plazas's avatar Adrien Plazas Committed by Guido Gunther

glade: Support both 3.24 and 3.36

parent 887beedb
Pipeline #55292 passed with stages
in 18 minutes and 7 seconds
......@@ -12,6 +12,7 @@
#include <config.h>
#include <glib/gi18n-lib.h>
#include <gladeui/glade.h>
#include "glade-hdy-utils.h"
#define TITLE_DISABLED_MESSAGE _("This property does not apply when a custom title is set")
......
......@@ -13,6 +13,7 @@
#include <config.h>
#include <glib/gi18n-lib.h>
#include <gladeui/glade.h>
#include "glade-hdy-utils.h"
#define GLADE_TAG_HEADERGROUP_WIDGETS "headerbars"
#define GLADE_TAG_HEADERGROUP_WIDGET "headerbar"
......
......@@ -14,6 +14,7 @@
#include <config.h>
#include <glib/gi18n-lib.h>
#include <gladeui/glade.h>
#include "glade-hdy-utils.h"
#define PROP_SWIPEABLES "swipeables"
#define GLADE_TAG_SWIPEGROUP_SWIPEABLES "swipeables"
......
......@@ -13,6 +13,14 @@
#define ONLY_THIS_GOES_IN_THAT_MSG _("Only objects of type %s can be added to objects of type %s.")
/* Guess wether we are using a Glade version older than 3.36.
*
* If yes, redefine some symbols which got renamed.
*/
#ifndef GLADE_PROPERTY_DEF_OBJECT_DELIMITER
#define GLADE_PROPERTY_DEF_OBJECT_DELIMITER GPC_OBJECT_DELIMITER
#define glade_widget_action_get_def glade_widget_action_get_class
#endif
void glade_hdy_sync_child_positions (GtkContainer *container);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment