Fixed main theme not showing left socketed button

pull/8/head
parent d8c39ae0c4
commit 0d1401b5df

@ -56,6 +56,7 @@ void on_plug_removed(GtkSocket* self, actionWidgets *widgets){
gtk_widget_set_vexpand(widgets->HideWhileLaunch,1); gtk_widget_set_vexpand(widgets->HideWhileLaunch,1);
//printf("Plug has been removed!\n\n\n"); //printf("Plug has been removed!\n\n\n");
gtk_widget_destroy(widgets->socketbutton); gtk_widget_destroy(widgets->socketbutton);
gtk_widget_destroy(widgets->ThirdSocket);
gtk_widget_show(widgets->appSettings); gtk_widget_show(widgets->appSettings);
} }
@ -81,8 +82,8 @@ void on_Item_activated(GtkIconView* self, GtkTreePath* path, actionWidgets *appl
if (tempapp[0].Type==2) if (tempapp[0].Type==2)
if (tempapp->Pluggable==1) if (tempapp->Pluggable==1)
if (tempapp->DualPluggable==1){ if (tempapp->DualPluggable==1){
char *dualarg=malloc(strlen("--socket-id= --socket-ext-id=")+30); char *dualarg=malloc(strlen("--socket-id= --socket-ext-id= --socket-trd-id=")+30);
sprintf(dualarg,"--socket-id=%d --socket-ext-id=%d",gtk_socket_get_id(GTK_SOCKET(applist->socket)),gtk_socket_get_id(GTK_SOCKET(applist->socketbutton))); sprintf(dualarg,"--socket-id=%d --socket-ext-id=%d --socket-trd-id=%d",gtk_socket_get_id(GTK_SOCKET(applist->socket)),gtk_socket_get_id(GTK_SOCKET(applist->socketbutton)),gtk_socket_get_id(GTK_SOCKET(applist->ThirdSocket)));
launch_app_with_arguments(tempapp[0].Exec,dualarg); launch_app_with_arguments(tempapp[0].Exec,dualarg);
} else } else
py_launch_app(tempapp[0].Exec,arg); py_launch_app(tempapp[0].Exec,arg);
@ -90,8 +91,8 @@ void on_Item_activated(GtkIconView* self, GtkTreePath* path, actionWidgets *appl
else if (tempapp[0].Type==1){ else if (tempapp[0].Type==1){
if (tempapp->Pluggable==1) if (tempapp->Pluggable==1)
if (tempapp->DualPluggable==1){ if (tempapp->DualPluggable==1){
char *dualarg=malloc(strlen("--socket-id= --socket-ext-id=")+30); char *dualarg=malloc(strlen("--socket-id= --socket-ext-id= --socket-trd-id=")+30);
sprintf(dualarg,"--socket-id=%d --socket-ext-id=%d",gtk_socket_get_id(GTK_SOCKET(applist->socket)),gtk_socket_get_id(GTK_SOCKET(applist->socketbutton))); sprintf(dualarg,"--socket-id=%d --socket-ext-id=%d --socket-trd-id=%d",gtk_socket_get_id(GTK_SOCKET(applist->socket)),gtk_socket_get_id(GTK_SOCKET(applist->socketbutton)),gtk_socket_get_id(GTK_SOCKET(applist->ThirdSocket)));
launch_app_with_arguments(tempapp[0].Exec,dualarg); launch_app_with_arguments(tempapp[0].Exec,dualarg);
} else } else
launch_app_with_arguments(tempapp[0].Exec,arg); launch_app_with_arguments(tempapp[0].Exec,arg);

Loading…
Cancel
Save