Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Avinash Sonawane
ristretto
Commits
ab2ed512
Commit
ab2ed512
authored
Oct 05, 2019
by
Igor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve deprecation warnings
G_TYPE_INSTANCE_GET_PRIVATE has been deprecated since glib 2.58.
parent
19328b9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
src/app_menu_item.c
src/app_menu_item.c
+1
-1
src/icon_bar.c
src/icon_bar.c
+1
-7
No files found.
src/app_menu_item.c
View file @
ab2ed512
...
...
@@ -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
...
...
src/icon_bar.c
View file @
ab2ed512
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment