GtkTreeViewColumn *column,
gpointer user_data);
+static void autoz_gui_resources_on_btn_cancel_clicked (GtkButton *button,
+ gpointer user_data);
+static void autoz_gui_resources_on_btn_ok_clicked (GtkButton *button,
+ gpointer user_data);
+
#define AUTOZ_GUI_RESOURCES_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_AUTOZ_GUI_RESOURCES, AutozGuiResourcesPrivate))
enum
g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "treeview1"),
"row-activated", G_CALLBACK (autoz_gui_resources_on_trv_autoz_gui_resources_row_activated), (gpointer)a);
+ g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button15"),
+ "clicked", G_CALLBACK (autoz_gui_resources_on_btn_cancel_clicked), (gpointer)a);
+ g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button16"),
+ "clicked", G_CALLBACK (autoz_gui_resources_on_btn_ok_clicked), (gpointer)a);
+
if (!selection)
{
gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (priv->commons->gtkbuilder, "button15")));
autoz_gui_resources_edit ((AutozGuiResources *)user_data);
}
}
+
+static void
+autoz_gui_resources_on_btn_cancel_clicked (GtkButton *button,
+ gpointer user_data)
+{
+ AutozGuiResourcesPrivate *priv = AUTOZ_GUI_RESOURCES_GET_PRIVATE ((AutozGuiResources *)user_data);
+
+ gtk_widget_destroy (priv->widget);
+ g_object_unref (G_OBJECT (user_data));
+}
+
+static void
+autoz_gui_resources_on_btn_ok_clicked (GtkButton *button,
+ gpointer user_data)
+{
+ autoz_gui_resources_selected ((AutozGuiResources *)user_data);
+}
GtkTreeViewColumn *column,
gpointer user_data);
+static void autoz_gui_roles_on_btn_cancel_clicked (GtkButton *button,
+ gpointer user_data);
+static void autoz_gui_roles_on_btn_ok_clicked (GtkButton *button,
+ gpointer user_data);
+
#define AUTOZ_GUI_ROLES_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_AUTOZ_GUI_ROLES, AutozGuiRolesPrivate))
enum
g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "treeview2"),
"row-activated", G_CALLBACK (autoz_gui_roles_on_trv_autoz_gui_roles_row_activated), (gpointer)a);
+ g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button10"),
+ "clicked", G_CALLBACK (autoz_gui_roles_on_btn_cancel_clicked), (gpointer)a);
+ g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button13"),
+ "clicked", G_CALLBACK (autoz_gui_roles_on_btn_ok_clicked), (gpointer)a);
+
if (!selection)
{
gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (priv->commons->gtkbuilder, "button10")));
autoz_gui_roles_edit ((AutozGuiRoles *)user_data);
}
}
+
+static void
+autoz_gui_roles_on_btn_cancel_clicked (GtkButton *button,
+ gpointer user_data)
+{
+ AutozGuiRolesPrivate *priv = AUTOZ_GUI_ROLES_GET_PRIVATE ((AutozGuiRoles *)user_data);
+
+ gtk_widget_destroy (priv->widget);
+ g_object_unref (G_OBJECT (user_data));
+}
+
+static void
+autoz_gui_roles_on_btn_ok_clicked (GtkButton *button,
+ gpointer user_data)
+{
+ autoz_gui_roles_selected ((AutozGuiRoles *)user_data);
+}