because iguleder compiled ./xbindkeys_config for dpup, too :
the HELP bug does also occur here on dpup-009
There are also three warnings :
menu.c: In function 'menu_open_file_ok':
menu.c:147: warning: assignment discards qualifiers from pointer target type
menu.c: In function 'menu_save_file_ok':
menu.c:197: warning: assignment discards qualifiers from pointer target type
menu.c: In function 'menu_append_file_ok':
menu.c:235: warning: assignment discards qualifiers from pointer target type
Code: Select all
diff -uraNd /xbindkeys_config-0.1.3/menu.c /xbindkeys_config-0.1.3.1/menu.c
--- /xbindkeys_config-0.1.3/menu.c 2010-11-13 13:44:14.000000000 +0100
+++ /xbindkeys_config-0.1.3.1/menu.c 2010-11-13 13:35:45.000000000 +0100
@@ -144,7 +144,7 @@
gboolean menu_open_file_ok(GtkFileSelection *Sel)
{
gchar *nom;
- nom=gtk_file_selection_get_filename(Sel);
+ nom = (char*)gtk_file_selection_get_filename(Sel);
read_file(nom);
return TRUE;
}
@@ -194,7 +194,7 @@
gboolean menu_save_file_ok(GtkFileSelection *Sel)
{
gchar *nom;
- nom=gtk_file_selection_get_filename(Sel);
+ nom = (char*)gtk_file_selection_get_filename(Sel);
save_file(nom);
return TRUE;
}
@@ -232,7 +232,7 @@
gboolean menu_append_file_ok(GtkFileSelection *Sel)
{
gchar *nom;
- nom=gtk_file_selection_get_filename(Sel);
+ nom = (char*)gtk_file_selection_get_filename(Sel); // cast (char*) to eliminate warning menu.c:235: warning: assignment discards qualifiers from pointer target type
append_file(nom);
return TRUE;
}
@@ -263,17 +263,22 @@
" lapinator@gmx.fr\n\n");
gtk_signal_connect(GTK_OBJECT(window), "delete_event",
- (GtkSignalFunc)unlockabout, NULL);
+ (GtkSignalFunc)gtk_widget_destroy, NULL);
gtk_signal_connect_object(GTK_OBJECT(window), "delete_event",
- (GtkSignalFunc)gtk_widget_destroy, GTK_OBJECT(window));
+ (GtkSignalFunc)unlockabout, GTK_OBJECT(window));
gtk_signal_connect(GTK_OBJECT(window), "destroy",
- (GtkSignalFunc)unlockabout, NULL);
- gtk_signal_connect_object(GTK_OBJECT(window), "delete_event",
- (GtkSignalFunc)gtk_widget_destroy, GTK_OBJECT(window));
+ (GtkSignalFunc)gtk_widget_destroy, NULL);
+ gtk_signal_connect_object(GTK_OBJECT(window), "destroy",
+ (GtkSignalFunc)unlockabout, GTK_OBJECT(window));
gtk_container_add(GTK_CONTAINER(window),text);
gtk_widget_set_sensitive (GTK_WIDGET(About), FALSE);
gtk_widget_show_all(window);
+
+ // gtk_widget_show(GTK_WIDGET(FichierDgl));
+
+ // lockfilewindow();
+
}
#define MANUAL_TEXT "To edit action, first append item and select them.\n\nTo get key use button \"Get Key\", don't write \nthe key (only for expert).\n\n\n FIX ME (HELP ME)\n\n\n"
@@ -307,13 +312,13 @@
gtk_widget_set_usize(text,300,250);
gtk_signal_connect(GTK_OBJECT(window), "delete_event",
- (GtkSignalFunc)unlockmanual, NULL);
+ (GtkSignalFunc)gtk_widget_destroy, NULL);
gtk_signal_connect_object(GTK_OBJECT(window), "delete_event",
- (GtkSignalFunc)gtk_widget_destroy, GTK_OBJECT(window));
+ (GtkSignalFunc)unlockmanual, GTK_OBJECT(window));
gtk_signal_connect(GTK_OBJECT(window), "destroy",
- (GtkSignalFunc)unlockmanual, NULL);
- gtk_signal_connect_object(GTK_OBJECT(window), "delete_event",
- (GtkSignalFunc)gtk_widget_destroy, GTK_OBJECT(window));
+ (GtkSignalFunc)gtk_widget_destroy, NULL);
+ gtk_signal_connect_object(GTK_OBJECT(window), "destroy",
+ (GtkSignalFunc)unlockmanual, GTK_OBJECT(window));
/*gtk_label_set_justify (GTK_LABEL(text), GTK_JUSTIFY_LEFT);*/
@@ -321,6 +326,11 @@
gtk_container_add(GTK_CONTAINER(window),vbox);
gtk_widget_set_sensitive (GTK_WIDGET(Manual), FALSE);
gtk_widget_show_all(window);
+
+ // gtk_widget_show(GTK_WIDGET(FichierDgl));
+
+ // lockfilewindow();
+
}
void lockfilewindow()
It seems to work with the char* cast after I've read severals in the net to const it, which was followed by errors at middle.h &| middle.c.
I thought because of reading a file, char would be the nearest idea and I don't know if long &| signed char * would do also.
The void menu_manual & void menu_about bugs are simple copy'n'paste turners by the author(s) I think.
The // gtk_widget_show(GTK_WIDGET(FichierDgl)); had been my first attempt after comparing the HELP functions with the working ones.