ui/gtk/button.c

changeset 1185
32f10747902b
parent 1122
fd0f943ff5f3
equal deleted inserted replaced
1184:2436f03c8aca 1185:32f10747902b
1007 void ui_linkbutton_set(UiString *s, const char *str) { 1007 void ui_linkbutton_set(UiString *s, const char *str) {
1008 linkbutton_apply_value(s->obj, str); 1008 linkbutton_apply_value(s->obj, str);
1009 if(s->value.free) { 1009 if(s->value.free) {
1010 s->value.free(s->value.ptr); 1010 s->value.free(s->value.ptr);
1011 } 1011 }
1012 s->value.ptr = NULL;
1012 #if GTK_MAJOR_VERSION == 3 1013 #if GTK_MAJOR_VERSION == 3
1013 UiLinkButton *data = s->obj; 1014 UiLinkButton *data = s->obj;
1014 GtkWidget *child = gtk_bin_get_child(GTK_BIN(data->widget)); 1015 GtkWidget *child = gtk_bin_get_child(GTK_BIN(data->widget));
1015 gtk_label_set_ellipsize(GTK_LABEL(child), PANGO_ELLIPSIZE_END); 1016 gtk_label_set_ellipsize(GTK_LABEL(child), PANGO_ELLIPSIZE_END);
1016 #endif 1017 #endif

mercurial