X-Git-Url: http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=xboard.git;a=blobdiff_plain;f=gtk%2Fxoptions.c;h=9e27c7ed0e06fb20b79d42543d17f98671502999;hp=e796d7ffa3c3e805fe5f1b8f76cbbfb52d77cbe6;hb=e7f8cb8acc3d72df3a0ac5102004a9a33f6bbd63;hpb=268c91aade57484e5e2e4cd72114c8cf49865fc9;ds=sidebyside diff --git a/gtk/xoptions.c b/gtk/xoptions.c index e796d7ff..9e27c7ed 100644 --- a/gtk/xoptions.c +++ b/gtk/xoptions.c @@ -1486,14 +1486,14 @@ if(appData.debugMode) printf("n=%d, h=%d, w=%d\n",n,height,width); label = frame; } gtk_widget_set_size_request(label, option[i].max ? option[i].max : -1, -1); - if(option[i].target || dlgNr != ErrorDlg &&!strchr(option[i].name, '\n')) { // allow user to specify event handler for button presses + if(option[i].target || dlgNr != ErrorDlg && option[i].name && !strchr(option[i].name, '\n')) { // allow user to specify event handler for button presses button = gtk_event_box_new(); gtk_container_add(GTK_CONTAINER(button), label); label = button; gtk_widget_add_events(GTK_WIDGET(label), GDK_BUTTON_PRESS_MASK); if(option[i].target) g_signal_connect(label, "button-press-event", G_CALLBACK(MemoEvent), (gpointer) &option[i]); - else g_signal_connect(label, "button-press-event", G_CALLBACK(HelpEvent), (gpointer) option[i].name); +// else g_signal_connect(label, "button-press-event", G_CALLBACK(HelpEvent), (gpointer) option[i].name); gtk_widget_set_sensitive(label, TRUE); } Pack(hbox, table, label, left, left+r, top, 0);