Check that range is valid in case callback happens before ui is fully built
This commit is contained in:
parent
b219c64dc5
commit
b5f2a60d44
@ -623,6 +623,7 @@ struct slider_callback_data {
|
|||||||
};
|
};
|
||||||
static gboolean slider_callback(gpointer data) {
|
static gboolean slider_callback(gpointer data) {
|
||||||
struct slider_callback_data *cbd = (struct slider_callback_data*)data;
|
struct slider_callback_data *cbd = (struct slider_callback_data*)data;
|
||||||
|
if (GTK_IS_RANGE(cbd->range))
|
||||||
gtk_range_set_value(cbd->range,cbd->val);
|
gtk_range_set_value(cbd->range,cbd->val);
|
||||||
free(cbd);
|
free(cbd);
|
||||||
return FALSE; // don't keep calling
|
return FALSE; // don't keep calling
|
||||||
|
Loading…
Reference in New Issue
Block a user