Commit a29309ba authored by Victor Ananjevsky's avatar Victor Ananjevsky

fix some warnings

parent e2dc4a8e
...@@ -1273,7 +1273,7 @@ form_print_field (guint fn) ...@@ -1273,7 +1273,7 @@ form_print_field (guint fn)
{ {
gchar *fname; gchar *fname;
#if !GTK_CHECK_VERSION(3,0,0) #if !GTK_CHECK_VERSION(3,0,0)
fname = gtk_font_button_get_font_name (GTK_FONT_BUTTON (g_slist_nth_data (fields, fn))); fname = (gchar *) gtk_font_button_get_font_name (GTK_FONT_BUTTON (g_slist_nth_data (fields, fn)));
#else #else
fname = gtk_font_chooser_get_font (GTK_FONT_CHOOSER (g_slist_nth_data (fields, fn))); fname = gtk_font_chooser_get_font (GTK_FONT_CHOOSER (g_slist_nth_data (fields, fn)));
#endif #endif
......
...@@ -1041,6 +1041,7 @@ set_expander (const gchar * option_name, const gchar * value, gpointer data, GEr ...@@ -1041,6 +1041,7 @@ set_expander (const gchar * option_name, const gchar * value, gpointer data, GEr
options.data.expander = g_strdup (value); options.data.expander = g_strdup (value);
else else
options.data.expander = ""; options.data.expander = "";
return TRUE; return TRUE;
} }
...@@ -1127,6 +1128,8 @@ set_posx (const gchar * option_name, const gchar * value, gpointer data, GError ...@@ -1127,6 +1128,8 @@ set_posx (const gchar * option_name, const gchar * value, gpointer data, GError
{ {
options.data.use_posx = TRUE; options.data.use_posx = TRUE;
options.data.posx = atol (value); options.data.posx = atol (value);
return TRUE;
} }
static gboolean static gboolean
...@@ -1134,6 +1137,8 @@ set_posy (const gchar * option_name, const gchar * value, gpointer data, GError ...@@ -1134,6 +1137,8 @@ set_posy (const gchar * option_name, const gchar * value, gpointer data, GError
{ {
options.data.use_posy = TRUE; options.data.use_posy = TRUE;
options.data.posy = atol (value); options.data.posy = atol (value);
return TRUE;
} }
static gboolean static gboolean
...@@ -1193,6 +1198,8 @@ set_scroll_policy (const gchar * option_name, const gchar * value, gpointer data ...@@ -1193,6 +1198,8 @@ set_scroll_policy (const gchar * option_name, const gchar * value, gpointer data
options.hscroll_policy = pt; options.hscroll_policy = pt;
else else
options.vscroll_policy = pt; options.vscroll_policy = pt;
return TRUE;
} }
#if GLIB_CHECK_VERSION(2,30,0) #if GLIB_CHECK_VERSION(2,30,0)
...@@ -1200,6 +1207,8 @@ static gboolean ...@@ -1200,6 +1207,8 @@ static gboolean
set_size_format (const gchar * option_name, const gchar * value, gpointer data, GError ** err) set_size_format (const gchar * option_name, const gchar * value, gpointer data, GError ** err)
{ {
options.common_data.size_fmt = G_FORMAT_SIZE_IEC_UNITS; options.common_data.size_fmt = G_FORMAT_SIZE_IEC_UNITS;
return TRUE;
} }
#endif #endif
...@@ -1210,6 +1219,8 @@ set_xid_file (const gchar * option_name, const gchar * value, gpointer data, GEr ...@@ -1210,6 +1219,8 @@ set_xid_file (const gchar * option_name, const gchar * value, gpointer data, GEr
options.print_xid = TRUE; options.print_xid = TRUE;
if (value && value[0]) if (value && value[0])
options.xid_file = g_strdup (value); options.xid_file = g_strdup (value);
return TRUE;
} }
static gboolean static gboolean
......
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