@@ -180,8 +180,8 @@ prefs_config_notify (GObject *config,
180
180
GParamSpec * param_spec ,
181
181
GObject * config_copy )
182
182
{
183
- GValue global_value = { 0 , } ;
184
- GValue copy_value = { 0 , } ;
183
+ GValue global_value = G_VALUE_INIT ;
184
+ GValue copy_value = G_VALUE_INIT ;
185
185
186
186
g_value_init (& global_value , param_spec -> value_type );
187
187
g_value_init (& copy_value , param_spec -> value_type );
@@ -211,8 +211,8 @@ prefs_config_copy_notify (GObject *config_copy,
211
211
GParamSpec * param_spec ,
212
212
GObject * config )
213
213
{
214
- GValue copy_value = { 0 , } ;
215
- GValue global_value = { 0 , } ;
214
+ GValue copy_value = G_VALUE_INIT ;
215
+ GValue global_value = G_VALUE_INIT ;
216
216
217
217
g_value_init (& copy_value , param_spec -> value_type );
218
218
g_value_init (& global_value , param_spec -> value_type );
@@ -324,7 +324,7 @@ prefs_response (GtkWidget *widget,
324
324
for (list = confirm_diff ; list ; list = g_list_next (list ))
325
325
{
326
326
GParamSpec * param_spec = list -> data ;
327
- GValue value = { 0 , } ;
327
+ GValue value = G_VALUE_INIT ;
328
328
329
329
g_value_init (& value , param_spec -> value_type );
330
330
@@ -395,7 +395,7 @@ prefs_response (GtkWidget *widget,
395
395
for (list = diff ; list ; list = g_list_next (list ))
396
396
{
397
397
GParamSpec * param_spec = list -> data ;
398
- GValue value = { 0 , } ;
398
+ GValue value = G_VALUE_INIT ;
399
399
400
400
g_value_init (& value , param_spec -> value_type );
401
401
@@ -704,7 +704,7 @@ prefs_format_string_select_callback (GtkTreeSelection *sel,
704
704
705
705
if (gtk_tree_selection_get_selected (sel , & model , & iter ))
706
706
{
707
- GValue val = { 0 , } ;
707
+ GValue val = G_VALUE_INIT ;
708
708
709
709
gtk_tree_model_get_value (model , & iter , 1 , & val );
710
710
gtk_entry_set_text (entry , g_value_get_string (& val ));
@@ -721,7 +721,7 @@ prefs_theme_select_callback (GtkTreeSelection *sel,
721
721
722
722
if (gtk_tree_selection_get_selected (sel , & model , & iter ))
723
723
{
724
- GValue val = { 0 , } ;
724
+ GValue val = G_VALUE_INIT ;
725
725
726
726
gtk_tree_model_get_value (model , & iter , 0 , & val );
727
727
g_object_set_property (G_OBJECT (gimp -> config ), "theme" , & val );
@@ -745,7 +745,7 @@ prefs_icon_theme_select_callback (GtkTreeSelection *sel,
745
745
746
746
if (gtk_tree_selection_get_selected (sel , & model , & iter ))
747
747
{
748
- GValue val = { 0 , } ;
748
+ GValue val = G_VALUE_INIT ;
749
749
750
750
gtk_tree_model_get_value (model , & iter , 1 , & val );
751
751
g_object_set_property (G_OBJECT (gimp -> config ), "icon-theme" , & val );
0 commit comments