fixed segfalt for drun, but drun still doesn't run pre-display-cmd
This commit is contained in:
parent
82a98a81fa
commit
f89e3e56c6
@ -570,8 +570,6 @@ static gboolean _insert_widget(gpointer data) {
|
|||||||
if(node == NULL) {
|
if(node == NULL) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
char* nodetext = *(node->text);
|
|
||||||
|
|
||||||
|
|
||||||
GtkWidget* parent;
|
GtkWidget* parent;
|
||||||
if(node->action_count > 1 && !no_actions) {
|
if(node->action_count > 1 && !no_actions) {
|
||||||
@ -579,7 +577,7 @@ static gboolean _insert_widget(gpointer data) {
|
|||||||
g_signal_connect(parent, "activate", G_CALLBACK(expand), NULL);
|
g_signal_connect(parent, "activate", G_CALLBACK(expand), NULL);
|
||||||
GtkWidget* box;
|
GtkWidget* box;
|
||||||
if(node->builder == NULL) {
|
if(node->builder == NULL) {
|
||||||
box = create_label(node->mode, nodetext, node->search_text, node->actions[0]);
|
box = create_label(node->mode, node->text[0], node->search_text, node->actions[0]);
|
||||||
} else {
|
} else {
|
||||||
box = GTK_WIDGET(node->builder->box);
|
box = GTK_WIDGET(node->builder->box);
|
||||||
setup_label(node->builder->mode->name, WOFI_PROPERTY_BOX(box));
|
setup_label(node->builder->mode->name, WOFI_PROPERTY_BOX(box));
|
||||||
@ -606,7 +604,7 @@ static gboolean _insert_widget(gpointer data) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(node->builder == NULL) {
|
if(node->builder == NULL) {
|
||||||
parent = create_label(node->mode, nodetext, node->search_text, node->actions[0]);
|
parent = create_label(node->mode, node->text[0], node->search_text, node->actions[0]);
|
||||||
} else {
|
} else {
|
||||||
parent = GTK_WIDGET(node->builder->box);
|
parent = GTK_WIDGET(node->builder->box);
|
||||||
setup_label(node->builder->mode->name, WOFI_PROPERTY_BOX(parent));
|
setup_label(node->builder->mode->name, WOFI_PROPERTY_BOX(parent));
|
||||||
|
Loading…
Reference in New Issue
Block a user