ui/gtk/text.c

changeset 49
2f71f4ee247a
parent 48
ae61523bce20
equal deleted inserted replaced
48:ae61523bce20 49:2f71f4ee247a
707 707
708 void ui_path_button_clicked(GtkWidget *widget, UiEventDataExt *event) { 708 void ui_path_button_clicked(GtkWidget *widget, UiEventDataExt *event) {
709 UiPathTextField *pathtf = event->customdata1; 709 UiPathTextField *pathtf = event->customdata1;
710 for(int i=0;i<event->value1;i++) { 710 for(int i=0;i<event->value1;i++) {
711 if(i <= event->value0) { 711 if(i <= event->value0) {
712 gtk_widget_remove_css_class(pathtf->current_path_buttons[i], "pathbar-button-inactive"); 712 WIDGET_REMOVE_CSS_CLASS(pathtf->current_path_buttons[i], "pathbar-button-inactive");
713 } else { 713 } else {
714 gtk_widget_add_css_class(pathtf->current_path_buttons[i], "pathbar-button-inactive"); 714 WIDGET_ADD_CSS_CLASS(pathtf->current_path_buttons[i], "pathbar-button-inactive");
715 } 715 }
716 } 716 }
717 717
718 UiPathElm *elm = event->customdata0; 718 UiPathElm *elm = event->customdata0;
719 cxmutstr path = cx_strdup(cx_strn(elm->path, elm->path_len)); 719 cxmutstr path = cx_strdup(cx_strn(elm->path, elm->path_len));

mercurial