summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonsta <[email protected]>2014-10-28 17:15:20 +0300
committerinfirit <[email protected]>2014-12-23 13:52:33 +0100
commit6f20a4ebbe6a37be428e72ea0d3286f61671c8ec (patch)
treee65371a9c6c117a2b2a4e1ee6879ac689bb5a44a
parent46c44a46efca3d0b0be143c2d1e71ee018489c9f (diff)
downloadeom-6f20a4ebbe6a37be428e72ea0d3286f61671c8ec.tar.bz2
eom-6f20a4ebbe6a37be428e72ea0d3286f61671c8ec.tar.xz
use guint for signals arrays, and zero-initialize them
-rw-r--r--src/eom-image.c2
-rw-r--r--src/eom-jobs.c2
-rw-r--r--src/eom-print-preview.c3
-rw-r--r--src/eom-scroll-view.c3
-rw-r--r--src/eom-sidebar.c2
-rw-r--r--src/eom-window.c2
6 files changed, 8 insertions, 6 deletions
diff --git a/src/eom-image.c b/src/eom-image.c
index 29bbaed..61164e9 100644
--- a/src/eom-image.c
+++ b/src/eom-image.c
@@ -80,7 +80,7 @@ enum {
SIGNAL_LAST
};
-static gint signals[SIGNAL_LAST];
+static guint signals[SIGNAL_LAST] = { 0 };
static GList *supported_mime_types = NULL;
diff --git a/src/eom-jobs.c b/src/eom-jobs.c
index cba47f9..d122a91 100644
--- a/src/eom-jobs.c
+++ b/src/eom-jobs.c
@@ -52,7 +52,7 @@ enum
SIGNAL_LAST_SIGNAL
};
-static guint job_signals[SIGNAL_LAST_SIGNAL];
+static guint job_signals[SIGNAL_LAST_SIGNAL] = { 0 };
static void eom_job_copy_run (EomJob *ejob);
static void eom_job_load_run (EomJob *ejob);
diff --git a/src/eom-print-preview.c b/src/eom-print-preview.c
index 3986df1..dd8dba2 100644
--- a/src/eom-print-preview.c
+++ b/src/eom-print-preview.c
@@ -79,7 +79,8 @@ enum {
SIGNAL_IMAGE_MOVED,
SIGNAL_LAST
};
-static gint preview_signals [SIGNAL_LAST];
+
+static guint preview_signals [SIGNAL_LAST] = { 0 };
enum {
PROP_IMAGE = 1,
diff --git a/src/eom-scroll-view.c b/src/eom-scroll-view.c
index 61e2c29..364ca7f 100644
--- a/src/eom-scroll-view.c
+++ b/src/eom-scroll-view.c
@@ -66,7 +66,8 @@ enum {
SIGNAL_ZOOM_CHANGED,
SIGNAL_LAST
};
-static gint view_signals [SIGNAL_LAST];
+
+static guint view_signals [SIGNAL_LAST] = { 0 };
typedef enum {
EOM_SCROLL_VIEW_CURSOR_NORMAL,
diff --git a/src/eom-sidebar.c b/src/eom-sidebar.c
index 0818bd0..d8a479c 100644
--- a/src/eom-sidebar.c
+++ b/src/eom-sidebar.c
@@ -52,7 +52,7 @@ enum {
SIGNAL_LAST
};
-static gint signals[SIGNAL_LAST];
+static guint signals[SIGNAL_LAST] = { 0 };
struct _EomSidebarPrivate {
GtkWidget *notebook;
diff --git a/src/eom-window.c b/src/eom-window.c
index 8909307..2c75d23 100644
--- a/src/eom-window.c
+++ b/src/eom-window.c
@@ -121,7 +121,7 @@ enum {
SIGNAL_LAST
};
-static gint signals[SIGNAL_LAST];
+static guint signals[SIGNAL_LAST] = { 0 };
struct _EomWindowPrivate {
GSettings *view_settings;