added signals to new buttons

This commit is contained in:
pavanvpatil 2022-08-11 14:44:42 +05:30
parent 145193cfb7
commit f598567844
2 changed files with 11 additions and 2 deletions

View File

@ -47,7 +47,7 @@
#include "ipdcGui.h" #include "ipdcGui.h"
/* Common fixed path for storage of few common files */ /* Common fixed path for storage of few common files */
#define UI_fILE "/home/chasingcar/dev/iPDC-v1.3.1/iPDC/iPDC.ui" #define UI_fILE "/home/pavan/Desktop/iPDC-suite/iPDC/iPDC.ui"
/* ---------------------------------------------------------------- */ /* ---------------------------------------------------------------- */
@ -118,6 +118,9 @@ int main(int argc, char **argv)
GW(rights_label); GW(rights_label);
GW(admin_label); GW(admin_label);
GW(time_lable); GW(time_lable);
GW(menuitem3);
GW(attack_detection);
GW(data_vis);
#undef GW #undef GW
/* Connect signals */ /* Connect signals */
@ -256,7 +259,7 @@ int main(int argc, char **argv)
g_signal_connect (data->remove_pmu_button, "clicked", G_CALLBACK(cmd_or_remove_pmu), (gpointer) "1"); g_signal_connect (data->remove_pmu_button, "clicked", G_CALLBACK(cmd_or_remove_pmu), (gpointer) "1");
g_signal_connect (data->menu_remove_source, "activate", G_CALLBACK(cmd_or_remove_pmu), (gpointer) "1"); g_signal_connect (data->menu_remove_source, "activate", G_CALLBACK(cmd_or_remove_pmu), (gpointer) "1");
g_signal_connect(data->attack_detection,"activate",G_CALLBACK(add_pmu),NULL);
g_signal_connect (data->cmd_data_off_button, "clicked", G_CALLBACK(cmd_or_remove_pmu), (gpointer) "2"); g_signal_connect (data->cmd_data_off_button, "clicked", G_CALLBACK(cmd_or_remove_pmu), (gpointer) "2");
g_signal_connect (data->menu_data_off, "activate", G_CALLBACK(cmd_or_remove_pmu), (gpointer) "2"); g_signal_connect (data->menu_data_off, "activate", G_CALLBACK(cmd_or_remove_pmu), (gpointer) "2");

View File

@ -86,6 +86,12 @@ struct _ChData
GtkWidget *time_lable; GtkWidget *time_lable;
GtkWidget *text_view; GtkWidget *text_view;
GtkWidget *text_view1; GtkWidget *text_view1;
/*Tools menu*/
GtkWidget *menuitem3;
GtkWidget *attack_detection;
GtkWidget *data_vis;
}; };
/* ---------------------------------------------------------------- */ /* ---------------------------------------------------------------- */