Removed the if statement in the sort code, it's not needed
This commit is contained in:
parent
b41b85a70b
commit
755d7b37f6
@ -733,13 +733,7 @@ static gint do_sort(GtkFlowBoxChild* child1, GtkFlowBoxChild* child2, gpointer d
|
|||||||
free(_filter);
|
free(_filter);
|
||||||
free(t1);
|
free(t1);
|
||||||
free(t2);
|
free(t2);
|
||||||
if(dist1 < dist2) {
|
return dist1 - dist2;
|
||||||
return -1;
|
|
||||||
} else if(dist1 > dist2) {
|
|
||||||
return 1;
|
|
||||||
} else {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean key_press(GtkWidget* widget, GdkEvent* event, gpointer data) {
|
static gboolean key_press(GtkWidget* widget, GdkEvent* event, gpointer data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user