X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fval-labs-dialog.c;h=d1649e900bae47ccf5f8eee28e578a69e84ae2da;hb=96994a54e60e9c95b8bba54c2281acf7059b1203;hp=ab56135ccc637dbbf6448fc34eac0e3e7c49748f;hpb=369c24f1d085a41ec274ebae5fc198fcee567653;p=pspp diff --git a/src/ui/gui/val-labs-dialog.c b/src/ui/gui/val-labs-dialog.c index ab56135ccc..d1649e900b 100644 --- a/src/ui/gui/val-labs-dialog.c +++ b/src/ui/gui/val-labs-dialog.c @@ -232,14 +232,14 @@ select_treeview_from_value (GtkTreeView *treeview, union value *val) v.f = g_value_get_double (&gvalue); - if ( 0 == memcmp (&v, val, sizeof (union value))) + if (0 == memcmp (&v, val, sizeof (union value))) { break; } } path = gtk_tree_model_get_path (model, &iter); - if ( path ) + if (path) { gtk_tree_view_set_cursor (treeview, path, 0, 0); gtk_tree_path_free (path); @@ -268,7 +268,7 @@ on_value_entry_change (GtkEntry *entry, gpointer data) gtk_entry_set_text (GTK_ENTRY (dialog->label_entry),""); - if ( (s = val_labs_find (dialog->labs, &v)) ) + if ((s = val_labs_find (dialog->labs, &v))) { gtk_entry_set_text (GTK_ENTRY (dialog->label_entry), s); gtk_widget_set_sensitive (dialog->add_button, FALSE); @@ -376,7 +376,7 @@ on_add (GtkWidget *w, gpointer data) { if (val_labs_add (dialog->labs, &v, gtk_entry_get_text - ( GTK_ENTRY (dialog->label_entry)) ) ) + (GTK_ENTRY (dialog->label_entry)))) { gtk_widget_set_sensitive (dialog->add_button, FALSE);