Commit ab2ed512 authored by Igor's avatar Igor

Resolve deprecation warnings

G_TYPE_INSTANCE_GET_PRIVATE has been deprecated since glib 2.58.
parent 19328b9a
......@@ -52,7 +52,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
static void
rstto_app_menu_item_init (RsttoAppMenuItem *menu_item)
{
menu_item->priv = G_TYPE_INSTANCE_GET_PRIVATE (menu_item, RSTTO_TYPE_APP_MENU_ITEM, RsttoAppMenuItemPrivate);
menu_item->priv = rstto_app_menu_item_get_instance_private (menu_item);
}
static void
......
......@@ -37,12 +37,6 @@
#define MINIMUM_ICON_ITEM_WIDTH 32
#define ICON_TEXT_PADDING 1
#define RSTTO_ICON_BAR_GET_PRIVATE(obj) ( \
G_TYPE_INSTANCE_GET_PRIVATE ( \
(obj), \
RSTTO_TYPE_ICON_BAR, \
RsttoIconBarPrivate))
#define RSTTO_ICON_BAR_VALID_MODEL_AND_COLUMNS(obj) \
((obj)->priv->model != NULL && \
(obj)->priv->file_column != -1)
......@@ -477,7 +471,7 @@ rstto_icon_bar_class_init (RsttoIconBarClass *klass)
static void
rstto_icon_bar_init (RsttoIconBar *icon_bar)
{
icon_bar->priv = RSTTO_ICON_BAR_GET_PRIVATE (icon_bar);
icon_bar->priv = rstto_icon_bar_get_instance_private (icon_bar);
icon_bar->priv->orientation = GTK_ORIENTATION_VERTICAL;
icon_bar->priv->pixbuf_column = -1;
......
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