diff --git a/ChangeLog b/ChangeLog index d632e25452..980b463f77 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +Sun Jan 2 21:46:46 CET 2000 Sven Neumann + + * app/plug_in.c: Redid my latest change here, since it didn't solve + the problem. Now, registering with image_types == NULL means the same + as what "" used to mean: No image is required and the menu entry will + always be sensitive. + + * plug-ins/script-fu/script-fu.c + * plug-ins/gap/gap_decode_mpeg_main.c + * plug-ins/gap/gap_frontends_main.c + * plug-ins/gap/gap_mpege.c: Use NULL instead of the empty string + when registering the image_types. + 2000-01-02 Kelly Lynn Martin * configure.in: bumped GTK req. to 1.2.6 -- I hadn't updated GTK diff --git a/app/actions/plug-in-commands.c b/app/actions/plug-in-commands.c index 0eb7184354..2822d9abc9 100644 --- a/app/actions/plug-in-commands.c +++ b/app/actions/plug-in-commands.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/gui/plug-in-commands.c b/app/gui/plug-in-commands.c index 0eb7184354..2822d9abc9 100644 --- a/app/gui/plug-in-commands.c +++ b/app/gui/plug-in-commands.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/gui/plug-in-menus.c b/app/gui/plug-in-menus.c index 0eb7184354..2822d9abc9 100644 --- a/app/gui/plug-in-menus.c +++ b/app/gui/plug-in-menus.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/menus/plug-in-menus.c b/app/menus/plug-in-menus.c index 0eb7184354..2822d9abc9 100644 --- a/app/menus/plug-in-menus.c +++ b/app/menus/plug-in-menus.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/plug-in/gimpplugin-message.c b/app/plug-in/gimpplugin-message.c index 0eb7184354..2822d9abc9 100644 --- a/app/plug-in/gimpplugin-message.c +++ b/app/plug-in/gimpplugin-message.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/plug-in/gimpplugin-progress.c b/app/plug-in/gimpplugin-progress.c index 0eb7184354..2822d9abc9 100644 --- a/app/plug-in/gimpplugin-progress.c +++ b/app/plug-in/gimpplugin-progress.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/plug-in/gimpplugin.c b/app/plug-in/gimpplugin.c index 0eb7184354..2822d9abc9 100644 --- a/app/plug-in/gimpplugin.c +++ b/app/plug-in/gimpplugin.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/plug-in/gimppluginmanager-call.c b/app/plug-in/gimppluginmanager-call.c index 0eb7184354..2822d9abc9 100644 --- a/app/plug-in/gimppluginmanager-call.c +++ b/app/plug-in/gimppluginmanager-call.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/plug-in/gimppluginmanager-run.c b/app/plug-in/gimppluginmanager-run.c index 0eb7184354..2822d9abc9 100644 --- a/app/plug-in/gimppluginmanager-run.c +++ b/app/plug-in/gimppluginmanager-run.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/plug-in/gimppluginmanager.c b/app/plug-in/gimppluginmanager.c index 0eb7184354..2822d9abc9 100644 --- a/app/plug-in/gimppluginmanager.c +++ b/app/plug-in/gimppluginmanager.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/plug-in/gimppluginshm.c b/app/plug-in/gimppluginshm.c index 0eb7184354..2822d9abc9 100644 --- a/app/plug-in/gimppluginshm.c +++ b/app/plug-in/gimppluginshm.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/plug-in/plug-in-def.c b/app/plug-in/plug-in-def.c index 0eb7184354..2822d9abc9 100644 --- a/app/plug-in/plug-in-def.c +++ b/app/plug-in/plug-in-def.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/plug-in/plug-in-message.c b/app/plug-in/plug-in-message.c index 0eb7184354..2822d9abc9 100644 --- a/app/plug-in/plug-in-message.c +++ b/app/plug-in/plug-in-message.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/plug-in/plug-in-params.c b/app/plug-in/plug-in-params.c index 0eb7184354..2822d9abc9 100644 --- a/app/plug-in/plug-in-params.c +++ b/app/plug-in/plug-in-params.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/plug-in/plug-in-progress.c b/app/plug-in/plug-in-progress.c index 0eb7184354..2822d9abc9 100644 --- a/app/plug-in/plug-in-progress.c +++ b/app/plug-in/plug-in-progress.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/plug-in/plug-in-run.c b/app/plug-in/plug-in-run.c index 0eb7184354..2822d9abc9 100644 --- a/app/plug-in/plug-in-run.c +++ b/app/plug-in/plug-in-run.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/plug-in/plug-in-shm.c b/app/plug-in/plug-in-shm.c index 0eb7184354..2822d9abc9 100644 --- a/app/plug-in/plug-in-shm.c +++ b/app/plug-in/plug-in-shm.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/plug-in/plug-in.c b/app/plug-in/plug-in.c index 0eb7184354..2822d9abc9 100644 --- a/app/plug-in/plug-in.c +++ b/app/plug-in/plug-in.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/plug-in/plug-ins.c b/app/plug-in/plug-ins.c index 0eb7184354..2822d9abc9 100644 --- a/app/plug-in/plug-ins.c +++ b/app/plug-in/plug-ins.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/app/plug_in.c b/app/plug_in.c index 0eb7184354..2822d9abc9 100644 --- a/app/plug_in.c +++ b/app/plug_in.c @@ -3099,14 +3099,14 @@ plug_in_args_destroy (Argument *args, int plug_in_image_types_parse (char *image_types) { - int types; + int types = 0; + /* + * If the plug_in registers with image_type == NULL or "", return 0 + * By doing so it won't be touched by plug_in_set_menu_sensitivity() + */ if (!image_types) - return (PLUG_IN_RGB_IMAGE | PLUG_IN_RGBA_IMAGE | - PLUG_IN_GRAY_IMAGE | PLUG_IN_GRAYA_IMAGE | - PLUG_IN_INDEXED_IMAGE | PLUG_IN_INDEXEDA_IMAGE); - - types = 0; + return types; while (*image_types) { diff --git a/plug-ins/AlienMap/AlienMap.c b/plug-ins/AlienMap/AlienMap.c index 3f74af51b9..2c03fa51ba 100644 --- a/plug-ins/AlienMap/AlienMap.c +++ b/plug-ins/AlienMap/AlienMap.c @@ -864,6 +864,7 @@ alienmap_dialog(void) gtk_widget_show (hbbox); button = gtk_button_new_with_label (_("About")); + GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC (alienmap_logo_dialog), NULL); diff --git a/plug-ins/AlienMap2/AlienMap2.c b/plug-ins/AlienMap2/AlienMap2.c index 5106baa12d..96c1f4c318 100644 --- a/plug-ins/AlienMap2/AlienMap2.c +++ b/plug-ins/AlienMap2/AlienMap2.c @@ -787,6 +787,7 @@ if (wvals.redfrequency!=1.0) exit; gtk_widget_show (hbbox); button = gtk_button_new_with_label (_("About")); + GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC (alienmap2_logo_dialog), NULL); diff --git a/plug-ins/gap/gap_decode_mpeg_main.c b/plug-ins/gap/gap_decode_mpeg_main.c index 50e6be153a..18ec12d321 100644 --- a/plug-ins/gap/gap_decode_mpeg_main.c +++ b/plug-ins/gap/gap_decode_mpeg_main.c @@ -166,7 +166,7 @@ query () "Wolfgang Hofer", "1999/11/18", N_("/Video/Split Video to Frames/MPEG1"), - "RGB*, INDEXED*, GRAY*", + NULL, PROC_PLUG_IN, nload_args, nload_return_vals, load_args, load_return_vals); @@ -178,7 +178,7 @@ query () "Wolfgang Hofer", "1999/11/18", N_("/Xtns/Split Video to Frames/MPEG1"), - "RGB*, INDEXED*, GRAY*", + NULL, PROC_EXTENSION, next_args, nload_return_vals, ext_args, load_return_vals); diff --git a/plug-ins/gap/gap_frontends_main.c b/plug-ins/gap/gap_frontends_main.c index 38ad52dab6..730c653ecd 100644 --- a/plug-ins/gap/gap_frontends_main.c +++ b/plug-ins/gap/gap_frontends_main.c @@ -127,7 +127,7 @@ query () "Wolfgang Hofer", gap_main_version, N_("/Video/Split Video to Frames/Any XANIM readable..."), - "RGB*, INDEXED*, GRAY*", + NULL, PROC_PLUG_IN, nargs_xanim, nreturn_vals, args_xanim, return_vals); @@ -139,7 +139,7 @@ query () "Wolfgang Hofer", gap_main_version, N_("/Xtns/Split Video to Frames/Any XANIM readable..."), - "RGB*, INDEXED*, GRAY*", + NULL, PROC_EXTENSION, nargs_xanim_ext, nreturn_vals, args_xanim_ext, return_vals); @@ -151,7 +151,7 @@ query () "Wolfgang Hofer", gap_main_version, N_("/Video/Encode/MPEG1..."), - "RGB*, INDEXED*, GRAY*", + "*", PROC_PLUG_IN, nargs_mpege, nreturn_vals, args_mpege, return_vals); @@ -164,7 +164,7 @@ query () "Wolfgang Hofer", gap_main_version, N_("/Video/Encode/MPEG2..."), - "RGB*, INDEXED*, GRAY*", + "*", PROC_PLUG_IN, nargs_mpege, nreturn_vals, args_mpege, return_vals); diff --git a/plug-ins/gap/gap_mpege.c b/plug-ins/gap/gap_mpege.c index f38c36f54f..8ae9ddb761 100644 --- a/plug-ins/gap/gap_mpege.c +++ b/plug-ins/gap/gap_mpege.c @@ -186,7 +186,7 @@ int p_mpege_info(t_anim_info *ainfo_ptr, char *errlist, t_gap_mpeg_encoder encod l_idx++; /* the Action Button */ - b_argv[0].but_txt = _("CANCEL"); + b_argv[0].but_txt = _("Cancel"); b_argv[0].but_val = -1; b_argv[1].but_txt = _("OK"); b_argv[1].but_val = 0; @@ -242,7 +242,7 @@ int p_mpege_dialog(t_anim_info *ainfo_ptr, t_mpg_par *mp_ptr, t_gap_mpeg_encoder b_argv[0].but_val = -1; b_argv[1].but_txt = _("GenParams"); b_argv[1].but_val = 0; - b_argv[2].but_txt = "Gen + Encode"; + b_argv[2].but_txt = _("Gen + Encode"); b_argv[2].but_val = 1; l_str = p_strdup_del_underscore(ainfo_ptr->basename); diff --git a/plug-ins/script-fu/script-fu-interface.c b/plug-ins/script-fu/script-fu-interface.c index 76638130e8..e539495447 100644 --- a/plug-ins/script-fu/script-fu-interface.c +++ b/plug-ins/script-fu/script-fu-interface.c @@ -1363,6 +1363,7 @@ script_fu_interface (SFScript *script) gtk_box_pack_start (GTK_BOX (hbox), bbox, FALSE, FALSE, 0); button = gtk_button_new_with_label (_("About")); + GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) script_fu_about_callback, title); diff --git a/plug-ins/script-fu/script-fu-scripts.c b/plug-ins/script-fu/script-fu-scripts.c index 76638130e8..e539495447 100644 --- a/plug-ins/script-fu/script-fu-scripts.c +++ b/plug-ins/script-fu/script-fu-scripts.c @@ -1363,6 +1363,7 @@ script_fu_interface (SFScript *script) gtk_box_pack_start (GTK_BOX (hbox), bbox, FALSE, FALSE, 0); button = gtk_button_new_with_label (_("About")); + GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) script_fu_about_callback, title); diff --git a/plug-ins/script-fu/script-fu.c b/plug-ins/script-fu/script-fu.c index 0ef591d06f..4883f9b7ea 100644 --- a/plug-ins/script-fu/script-fu.c +++ b/plug-ins/script-fu/script-fu.c @@ -156,7 +156,7 @@ query (void) "Spencer Kimball & Peter Mattis", "1997", N_("/Xtns/Script-Fu/Console..."), - "", + NULL, PROC_EXTENSION, nconsole_args, 0, console_args, NULL); @@ -168,7 +168,7 @@ query (void) "Spencer Kimball & Peter Mattis", "1997", N_("/Xtns/Script-Fu/Server..."), - "", + NULL, PROC_EXTENSION, nserver_args, 0, server_args, NULL); diff --git a/plug-ins/webbrowser/webbrowser.c b/plug-ins/webbrowser/webbrowser.c index 3ca8a3435d..927e104c98 100644 --- a/plug-ins/webbrowser/webbrowser.c +++ b/plug-ins/webbrowser/webbrowser.c @@ -271,6 +271,7 @@ open_url_dialog () gtk_widget_show (hbbox); button = gtk_button_new_with_label (_("About")); + GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect(GTK_OBJECT(button), "clicked", (GtkSignalFunc) about_callback, dlg);