ui/gtk/text.c

branch
newapi
changeset 326
3968180cdfb0
parent 323
38cb8e3992e8
child 335
91d4f0391282
equal deleted inserted replaced
325:99a93a9250c4 326:3968180cdfb0
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