[Xfce4-commits] [apps/ristretto] 01/02: Add missing field initializers
noreply at xfce.org
noreply at xfce.org
Mon Jul 2 18:40:28 CEST 2018
This is an automated email from the git hooks/post-receive script.
f 2 4 0 4 p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/ristretto.
commit 220f835d1cdc17307cecc4e4cb838b2a4cb59052
Author: Igor <f2404 at yandex.ru>
Date: Mon Jul 2 12:40:08 2018 -0400
Add missing field initializers
---
src/main_window.c | 32 +++++++++++++++++++++++++++++++-
src/wallpaper_manager.c | 6 +++---
2 files changed, 34 insertions(+), 4 deletions(-)
diff --git a/src/main_window.c b/src/main_window.c
index 9387689..9cbb580 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -80,7 +80,7 @@ struct _RsttoMainWindowPriv
guint show_fs_toolbar_timeout_id;
gint window_save_geometry_timer_id;
-
+
gboolean fs_toolbar_sticky;
RsttoImageListIter *iter;
@@ -365,6 +365,8 @@ static GtkActionEntry action_entries[] =
{ "file-menu",
NULL,
N_ ("_File"),
+ NULL,
+ NULL,
NULL, },
{ "open",
"document-open", /* Icon-name */
@@ -406,14 +408,20 @@ static GtkActionEntry action_entries[] =
{ "edit-menu",
NULL,
N_ ("_Edit"),
+ NULL,
+ NULL,
NULL, },
{ "open-with-menu",
NULL,
N_ ("_Open with"),
+ NULL,
+ NULL,
NULL, },
{ "sorting-menu",
NULL,
N_ ("_Sorting"),
+ NULL,
+ NULL,
NULL, },
{ "delete",
"edit-delete", /* Icon-name */
@@ -437,6 +445,8 @@ static GtkActionEntry action_entries[] =
{ "view-menu",
NULL,
N_ ("_View"),
+ NULL,
+ NULL,
NULL, },
{ "fullscreen",
"view-fullscreen", /* Icon-name */
@@ -460,6 +470,8 @@ static GtkActionEntry action_entries[] =
{ "zoom-menu",
NULL,
N_ ("_Zoom"),
+ NULL,
+ NULL,
NULL, },
{ "zoom-in",
"zoom-in", /* Icon-name */
@@ -489,6 +501,8 @@ static GtkActionEntry action_entries[] =
{ "rotation-menu",
NULL,
N_ ("_Rotation"),
+ NULL,
+ NULL,
NULL, },
{ "rotate-cw",
"object-rotate-right", /* Icon-name */
@@ -506,6 +520,8 @@ static GtkActionEntry action_entries[] =
{ "flip-menu",
NULL,
N_ ("_Flip"),
+ NULL,
+ NULL,
NULL, },
{ "flip-horizontally",
"object-flip-horizontal",
@@ -523,6 +539,8 @@ static GtkActionEntry action_entries[] =
{ "go-menu",
NULL,
N_ ("_Go"),
+ NULL,
+ NULL,
NULL, },
{ "forward",
"go-next", /* Icon-name */
@@ -552,6 +570,8 @@ static GtkActionEntry action_entries[] =
{ "help-menu",
NULL,
N_ ("_Help"),
+ NULL,
+ NULL,
NULL, },
{ "contents",
"help-browser", /* Icon-name */
@@ -569,18 +589,26 @@ static GtkActionEntry action_entries[] =
{ "position-menu",
NULL,
N_ ("_Position"),
+ NULL,
+ NULL,
NULL, },
{ "size-menu",
NULL,
N_ ("_Size"),
+ NULL,
+ NULL,
NULL, },
{ "thumbnailbar-position-menu",
NULL,
N_ ("Thumbnail Bar _Position"),
+ NULL,
+ NULL,
NULL, },
{ "thumbnailbar-size-menu",
NULL,
N_ ("Thumb_nail Size"),
+ NULL,
+ NULL,
NULL, },
/* Misc */
{ "leave-fullscreen",
@@ -592,6 +620,8 @@ static GtkActionEntry action_entries[] =
{ "tb-menu",
NULL,
NULL,
+ NULL,
+ NULL,
NULL, }
};
diff --git a/src/wallpaper_manager.c b/src/wallpaper_manager.c
index a6d6992..8d3ee04 100644
--- a/src/wallpaper_manager.c
+++ b/src/wallpaper_manager.c
@@ -65,9 +65,9 @@ rstto_wallpaper_manager_get_type (void)
if (iface_type == 0)
{
static const GTypeInfo info = {
- sizeof (RsttoWallpaperManagerIface),
- rstto_wallpaper_manager_iface_init, /* base_init */
- NULL, /* base_finalize */
+ /* other fields are initialized to 0 */
+ .class_size = sizeof (RsttoWallpaperManagerIface),
+ .base_init = rstto_wallpaper_manager_iface_init,
};
iface_type = g_type_register_static (
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list