Commit e0264b3e authored by Victor Ananjevsky's avatar Victor Ananjevsky

cleanup

parent 513e854c
...@@ -435,8 +435,6 @@ create_dialog (void) ...@@ -435,8 +435,6 @@ create_dialog (void)
btn = gtk_button_new (); btn = gtk_button_new ();
gtk_container_add (GTK_CONTAINER (btn), get_label (b->name, 2, btn)); gtk_container_add (GTK_CONTAINER (btn), get_label (b->name, 2, btn));
//gtk_widget_set_halign (btn, GTK_ALIGN_FILL);
//gtk_widget_set_valign (btn, GTK_ALIGN_FILL);
g_object_set_data (G_OBJECT (btn), "resp", GINT_TO_POINTER (b->response)); g_object_set_data (G_OBJECT (btn), "resp", GINT_TO_POINTER (b->response));
g_signal_connect (G_OBJECT (btn), "clicked", G_CALLBACK (btn_cb), b->cmd); g_signal_connect (G_OBJECT (btn), "clicked", G_CALLBACK (btn_cb), b->cmd);
gtk_box_pack_start (GTK_BOX (bbox), btn, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (bbox), btn, TRUE, TRUE, 0);
...@@ -453,8 +451,6 @@ create_dialog (void) ...@@ -453,8 +451,6 @@ create_dialog (void)
/* add close button */ /* add close button */
btn = gtk_button_new (); btn = gtk_button_new ();
gtk_container_add (GTK_CONTAINER (btn), get_label ("yad-close", 2, btn)); gtk_container_add (GTK_CONTAINER (btn), get_label ("yad-close", 2, btn));
//gtk_widget_set_halign (btn, GTK_ALIGN_FILL);
//gtk_widget_set_valign (btn, GTK_ALIGN_FILL);
g_object_set_data (G_OBJECT (btn), "resp", GINT_TO_POINTER (YAD_RESPONSE_OK)); g_object_set_data (G_OBJECT (btn), "resp", GINT_TO_POINTER (YAD_RESPONSE_OK));
g_signal_connect (G_OBJECT (btn), "clicked", G_CALLBACK (btn_cb), NULL); g_signal_connect (G_OBJECT (btn), "clicked", G_CALLBACK (btn_cb), NULL);
gtk_box_pack_start (GTK_BOX (bbox), btn, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (bbox), btn, TRUE, TRUE, 0);
...@@ -465,8 +461,6 @@ create_dialog (void) ...@@ -465,8 +461,6 @@ create_dialog (void)
/* add cancel button */ /* add cancel button */
btn = gtk_button_new (); btn = gtk_button_new ();
gtk_container_add (GTK_CONTAINER (btn), get_label ("yad-cancel", 2, btn)); gtk_container_add (GTK_CONTAINER (btn), get_label ("yad-cancel", 2, btn));
//gtk_widget_set_halign (btn, GTK_ALIGN_FILL);
//gtk_widget_set_valign (btn, GTK_ALIGN_FILL);
g_object_set_data (G_OBJECT (btn), "resp", GINT_TO_POINTER (YAD_RESPONSE_CANCEL)); g_object_set_data (G_OBJECT (btn), "resp", GINT_TO_POINTER (YAD_RESPONSE_CANCEL));
g_signal_connect (G_OBJECT (btn), "clicked", G_CALLBACK (btn_cb), NULL); g_signal_connect (G_OBJECT (btn), "clicked", G_CALLBACK (btn_cb), NULL);
gtk_box_pack_start (GTK_BOX (bbox), btn, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (bbox), btn, TRUE, TRUE, 0);
...@@ -474,8 +468,6 @@ create_dialog (void) ...@@ -474,8 +468,6 @@ create_dialog (void)
/*add ok button */ /*add ok button */
btn = gtk_button_new (); btn = gtk_button_new ();
gtk_container_add (GTK_CONTAINER (btn), get_label ("yad-ok", 2, btn)); gtk_container_add (GTK_CONTAINER (btn), get_label ("yad-ok", 2, btn));
//gtk_widget_set_halign (btn, GTK_ALIGN_FILL);
//gtk_widget_set_valign (btn, GTK_ALIGN_FILL);
g_object_set_data (G_OBJECT (btn), "resp", GINT_TO_POINTER (YAD_RESPONSE_OK)); g_object_set_data (G_OBJECT (btn), "resp", GINT_TO_POINTER (YAD_RESPONSE_OK));
g_signal_connect (G_OBJECT (btn), "clicked", G_CALLBACK (btn_cb), NULL); g_signal_connect (G_OBJECT (btn), "clicked", G_CALLBACK (btn_cb), NULL);
gtk_box_pack_start (GTK_BOX (bbox), btn, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (bbox), btn, TRUE, TRUE, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment