Commit af1ef82c0c2ea750d2bed97f5451e341bbef2569

Authored by Perry Werneck
1 parent a5255756
Exists in master and in 1 other branch develop

Working in clipboard settings widget.

Showing 1 changed file with 17 additions and 1 deletions   Show diff stats
src/dialogs/settings/clipboard.c
... ... @@ -165,6 +165,22 @@ static void V3270ClipboardSettings_class_init(V3270ClipboardSettingsClass *klass
165 165  
166 166 }
167 167  
  168 +static void copy_format_changed(GtkComboBox *widget, GtkWidget *grid) {
  169 +
  170 + GtkTreeIter iter;
  171 +
  172 + if(gtk_combo_box_get_active_iter(widget,&iter)) {
  173 +
  174 + GValue value = { 0, };
  175 + gtk_tree_model_get_value(gtk_combo_box_get_model(widget),&iter,1,&value);
  176 + guint flag = g_value_get_uint(&value);
  177 + gtk_widget_set_sensitive(grid,flag == 1);
  178 + g_value_unset(&value);
  179 +
  180 + }
  181 +
  182 +}
  183 +
168 184 static void V3270ClipboardSettings_init(V3270ClipboardSettings *widget) {
169 185  
170 186 size_t ix;
... ... @@ -293,7 +309,7 @@ static void V3270ClipboardSettings_init(V3270ClipboardSettings *widget) {
293 309  
294 310 }
295 311  
296   -
  312 + g_signal_connect(widget->input.combos[2],"changed",G_CALLBACK(copy_format_changed),grids[2]);
297 313  
298 314 }
299 315  
... ...