Loading ...
Sorry, an error occurred while loading the content.
 

vim with gtk2, the find dialog's buttons are disabled..

Expand Messages
  • Jeremy Messenger
    I haven t update VIM with GTK2 (6.1.xxx with Daniel s patch) for a quiet while until today by use FreeBSD s vim port. It s 6.2.014 version. However, the find
    Message 1 of 10 , Jul 6, 2003
      I haven't update VIM with GTK2 (6.1.xxx with Daniel's patch) for a quiet
      while until today by use FreeBSD's vim port. It's 6.2.014 version. However,
      the find and find/replace dialogs' buttons has been disabled (grey). But, I
      still can use it by press the enter to search and can't use those buttons
      thought.

      So, I decided to tweak FreeBSD's vim port to add the Gnome support (--
      enable-gnome-check) and now those buttons are function again (not disable
      and grey anymore).. Perhaps, someone should check with gtk2 only (without
      Gnome support) issue for the find and find/replace dialogs' buttons?

      Cheers,
      Mezz


      --
      bsdforums.org 's moderator, mezz.
    • Jeremy Messenger
      ... Oops, I mean it s 6.2.14 version.. ... -- bsdforums.org s moderator, mezz.
      Message 2 of 10 , Jul 6, 2003
        On Sun, 06 Jul 2003 17:28:04 -0500, Jeremy Messenger <mezz7@...> wrote:

        > I haven't update VIM with GTK2 (6.1.xxx with Daniel's patch) for a quiet
        > while until today by use FreeBSD's vim port. It's 6.2.014 version.

        Oops, I mean it's 6.2.14 version..

        > However, the find and find/replace dialogs' buttons has been disabled
        > (grey). But, I still can use it by press the enter to search and can't
        > use those buttons thought.
        >
        > So, I decided to tweak FreeBSD's vim port to add the Gnome support (--
        > enable-gnome-check) and now those buttons are function again (not disable
        > and grey anymore).. Perhaps, someone should check with gtk2 only (without
        > Gnome support) issue for the find and find/replace dialogs' buttons?
        >
        > Cheers,
        > Mezz


        --
        bsdforums.org 's moderator, mezz.
      • Aschwin Marsman
        ... Which GTK version are you using? ... Kind regards, Aschwin Marsman -- aYniK Software Solutions all You need is Knowledge P.O. box 134
        Message 3 of 10 , Jul 6, 2003
          On Sun, 6 Jul 2003, Jeremy Messenger wrote:

          > On Sun, 06 Jul 2003 17:28:04 -0500, Jeremy Messenger <mezz7@...> wrote:
          >
          > > I haven't update VIM with GTK2 (6.1.xxx with Daniel's patch) for a quiet
          > > while until today by use FreeBSD's vim port. It's 6.2.014 version.
          >
          > Oops, I mean it's 6.2.14 version..
          >
          > > However, the find and find/replace dialogs' buttons has been disabled
          > > (grey). But, I still can use it by press the enter to search and can't
          > > use those buttons thought.

          Which GTK version are you using?

          > > So, I decided to tweak FreeBSD's vim port to add the Gnome support (--
          > > enable-gnome-check) and now those buttons are function again (not disable
          > > and grey anymore).. Perhaps, someone should check with gtk2 only (without
          > > Gnome support) issue for the find and find/replace dialogs' buttons?
          > >
          > > Cheers,
          > > Mezz

          Kind regards,

          Aschwin Marsman

          --
          aYniK Software Solutions all You need is Knowledge
          P.O. box 134 NL-7600 AC Almelo - the Netherlands
          a.marsman@... http://www.aYniK.com
        • Jeremy Messenger
          On Mon, 7 Jul 2003 06:47:31 +0200 (CEST), Aschwin Marsman ... Lastest version, it s GTK 2.2.2.. Cheers, Mezz ... -- bsdforums.org s moderator, mezz.
          Message 4 of 10 , Jul 6, 2003
            On Mon, 7 Jul 2003 06:47:31 +0200 (CEST), Aschwin Marsman
            <a.marsman@...> wrote:

            > On Sun, 6 Jul 2003, Jeremy Messenger wrote:
            >
            >> On Sun, 06 Jul 2003 17:28:04 -0500, Jeremy Messenger <mezz7@...>
            >> wrote:
            >>
            >> > I haven't update VIM with GTK2 (6.1.xxx with Daniel's patch) for a
            >> quiet > while until today by use FreeBSD's vim port. It's 6.2.014
            >> version.
            >>
            >> Oops, I mean it's 6.2.14 version..
            >>
            >> > However, the find and find/replace dialogs' buttons has been disabled
            >> > (grey). But, I still can use it by press the enter to search and can't
            >> > use those buttons thought.
            >
            > Which GTK version are you using?

            Lastest version, it's GTK 2.2.2..

            Cheers,
            Mezz

            >> > So, I decided to tweak FreeBSD's vim port to add the Gnome support (--
            >> > enable-gnome-check) and now those buttons are function again (not
            >> disable > and grey anymore).. Perhaps, someone should check with gtk2
            >> only (without > Gnome support) issue for the find and find/replace
            >> dialogs' buttons?
            >> >
            >> > Cheers,
            >> > Mezz
            >>
            > Kind regards,
            > Aschwin Marsman


            --
            bsdforums.org 's moderator, mezz.
          • Aschwin Marsman
            ... I have 2.0.2 (RH7.3), but I can t use it because it gives a lot of problems, e.g. with fonts. It s of no help if I try to reproduce this, hope somebody
            Message 5 of 10 , Jul 9, 2003
              On Mon, 7 Jul 2003, Jeremy Messenger wrote:

              > On Mon, 7 Jul 2003 06:47:31 +0200 (CEST), Aschwin Marsman
              > <a.marsman@...> wrote:
              >
              > > On Sun, 6 Jul 2003, Jeremy Messenger wrote:
              > >
              > >> On Sun, 06 Jul 2003 17:28:04 -0500, Jeremy Messenger <mezz7@...>
              > >> wrote:
              > >>
              > >> > I haven't update VIM with GTK2 (6.1.xxx with Daniel's patch) for a
              > >> quiet > while until today by use FreeBSD's vim port. It's 6.2.014
              > >> version.
              > >>
              > >> Oops, I mean it's 6.2.14 version..
              > >>
              > >> > However, the find and find/replace dialogs' buttons has been disabled
              > >> > (grey). But, I still can use it by press the enter to search and can't
              > >> > use those buttons thought.
              > >
              > > Which GTK version are you using?
              >
              > Lastest version, it's GTK 2.2.2..

              I have 2.0.2 (RH7.3), but I can't use it because it gives a lot of problems, e.g.
              with fonts. It's of no help if I try to reproduce this, hope somebody else will.
              Daniel Elstner, which did most of the work for GTK2, might be able to help, but
              I haven't seen him on this list for a while.

              > Cheers,
              > Mezz

              > >> > So, I decided to tweak FreeBSD's vim port to add the Gnome support (--
              > >> > enable-gnome-check) and now those buttons are function again (not
              > >> disable > and grey anymore).. Perhaps, someone should check with gtk2
              > >> only (without > Gnome support) issue for the find and find/replace
              > >> dialogs' buttons?
              > >> >
              > >> > Cheers,
              > >> > Mezz
              > >>
              > > Kind regards,
              > > Aschwin Marsman

              Have fun,

              Aschwin Marsman

              --
              aYniK Software Solutions all You need is Knowledge
              P.O. box 134 NL-7600 AC Almelo - the Netherlands
              a.marsman@... http://www.aYniK.com
            • David Necas (Yeti)
              ... OK, here s a fix (at the end), at least of what I was able to reproduce. Tested on 6.2.0. *BUT* it fixes it by bringing back the Most Evil Hack
              Message 6 of 10 , Jul 9, 2003
                On Wed, Jul 09, 2003 at 07:47:54PM +0200, Aschwin Marsman wrote:
                > On Mon, 7 Jul 2003, Jeremy Messenger wrote:
                >
                > > On Mon, 7 Jul 2003 06:47:31 +0200 (CEST), Aschwin Marsman
                > > <a.marsman@...> wrote:
                > >
                > > > On Sun, 6 Jul 2003, Jeremy Messenger wrote:
                > > >
                > > >> On Sun, 06 Jul 2003 17:28:04 -0500, Jeremy Messenger <mezz7@...>
                > > >> wrote:
                > > >>
                > > >> > I haven't update VIM with GTK2 (6.1.xxx with Daniel's patch) for a
                > > >> quiet > while until today by use FreeBSD's vim port. It's 6.2.014
                > > >> version.
                > > >>
                > > >> Oops, I mean it's 6.2.14 version..
                > > >>
                > > >> > However, the find and find/replace dialogs' buttons has been disabled
                > > >> > (grey). But, I still can use it by press the enter to search and can't
                > > >> > use those buttons thought.
                > > >
                > > > Which GTK version are you using?
                > >
                > > Lastest version, it's GTK 2.2.2..
                >
                > I have 2.0.2 (RH7.3), but I can't use it because it gives a lot of problems, e.g.
                > with fonts. It's of no help if I try to reproduce this, hope somebody else will.
                > Daniel Elstner, which did most of the work for GTK2, might be able to help, but
                > I haven't seen him on this list for a while.

                OK, here's a fix (at the end), at least of what I was able
                to reproduce. Tested on 6.2.0.

                *BUT* it fixes it by bringing back the Most Evil Hack
                entry_changed_cb(), carefully #ifdef-ed out from the Gtk+2
                code paths. It however took care of making the buttons
                sensitive when the entry was nonempty -- among other things.
                So if Daniel is listening and really doesn't like it so much,
                he should come up with some nicer fix now ;-)

                Regards,

                Yeti


                --
                DPM 5.7.2: Do not use tab characters. Their effect is not predictable.



                --- vim62.orig/src/gui_gtk.c 2003-07-09 20:35:51.000000000 +0200
                +++ vim62/src/gui_gtk.c 2003-07-09 20:34:42.000000000 +0200
                @@ -166,9 +166,7 @@
                #endif /* HAVE_GTK2 */

                static void entry_activate_cb(GtkWidget *widget, gpointer data);
                -#ifndef HAVE_GTK2 /* crack alert! */
                static void entry_changed_cb(GtkWidget *entry, GtkWidget *dialog);
                -#endif
                static void find_direction_cb(GtkWidget *widget, gpointer data);
                static void find_replace_cb(GtkWidget *widget, gpointer data);
                static void wword_match_cb(GtkWidget *widget, gpointer data);
                @@ -2472,10 +2470,8 @@
                sensitive = (entry_text != NULL && entry_text[0] != NUL);
                if (entry_text != NULL)
                gtk_entry_set_text(GTK_ENTRY(frdp->what), (char *)entry_text);
                -#ifndef HAVE_GTK2
                gtk_signal_connect(GTK_OBJECT(frdp->what), "changed",
                GTK_SIGNAL_FUNC(entry_changed_cb), frdp->dialog);
                -#endif
                gtk_signal_connect_after(GTK_OBJECT(frdp->what), "key_press_event",
                GTK_SIGNAL_FUNC(find_key_press_event),
                (gpointer) frdp);
                @@ -2879,7 +2875,6 @@
                * particularly evil incarnation of braindeadness, whatever; I'd much rather
                * see it extinguished from this planet. Thanks for listening. Sorry.
                */
                -#ifndef HAVE_GTK2
                static void
                entry_changed_cb(GtkWidget * entry, GtkWidget * dialog)
                {
                @@ -2920,7 +2915,6 @@
                }
                }
                }
                -#endif

                /*
                * ":helpfind"
              • Jeremy Messenger
                On Wed, 9 Jul 2003 20:49:25 +0200, David Necas (Yeti) ... I just tested your patch and it seems work much better, but I haven t test it with gnome support
                Message 7 of 10 , Jul 15, 2003
                  On Wed, 9 Jul 2003 20:49:25 +0200, David Necas (Yeti)
                  <yeti@...> wrote:

                  > On Wed, Jul 09, 2003 at 07:47:54PM +0200, Aschwin Marsman wrote:
                  >> On Mon, 7 Jul 2003, Jeremy Messenger wrote:
                  >>
                  >> > On Mon, 7 Jul 2003 06:47:31 +0200 (CEST), Aschwin Marsman >
                  >> <a.marsman@...> wrote:
                  >> > > > On Sun, 6 Jul 2003, Jeremy Messenger wrote:
                  >> > >
                  >> > >> On Sun, 06 Jul 2003 17:28:04 -0500, Jeremy Messenger
                  >> <mezz7@...> > >> wrote:
                  >> > >>
                  >> > >> > I haven't update VIM with GTK2 (6.1.xxx with Daniel's patch) for
                  >> a > >> quiet > while until today by use FreeBSD's vim port. It's 6.2.014
                  >> > >> version.
                  >> > >>
                  >> > >> Oops, I mean it's 6.2.14 version..
                  >> > >>
                  >> > >> > However, the find and find/replace dialogs' buttons has been
                  >> disabled > >> > (grey). But, I still can use it by press the enter to
                  >> search and can't > >> > use those buttons thought.
                  >> > >
                  >> > > Which GTK version are you using?
                  >> > > Lastest version, it's GTK 2.2.2..
                  >>
                  >> I have 2.0.2 (RH7.3), but I can't use it because it gives a lot of
                  >> problems, e.g.
                  >> with fonts. It's of no help if I try to reproduce this, hope somebody
                  >> else will.
                  >> Daniel Elstner, which did most of the work for GTK2, might be able to
                  >> help, but
                  >> I haven't seen him on this list for a while.
                  >
                  > OK, here's a fix (at the end), at least of what I was able
                  > to reproduce. Tested on 6.2.0.
                  >
                  > *BUT* it fixes it by bringing back the Most Evil Hack
                  > entry_changed_cb(), carefully #ifdef-ed out from the Gtk+2
                  > code paths. It however took care of making the buttons
                  > sensitive when the entry was nonempty -- among other things.
                  > So if Daniel is listening and really doesn't like it so much,
                  > he should come up with some nicer fix now ;-)

                  I just tested your patch and it seems work much better, but I haven't test
                  it with gnome support thought. The gnome support works fine without this
                  patch..

                  Cheers,
                  Mezz

                  > Regards,
                  >
                  > Yeti
                  <snip>


                  --
                  bsdforums.org 's moderator, mezz.
                • Bram Moolenaar
                  ... Well, so long as this fixes the problem and doesn t introduce a new one we might as well use this solution. Hopefully Daniel does respond some day... --
                  Message 8 of 10 , Jul 20, 2003
                    David Necas wrote:

                    > > > >> > However, the find and find/replace dialogs' buttons has been disabled
                    > > > >> > (grey). But, I still can use it by press the enter to search and can't
                    > > > >> > use those buttons thought.
                    >
                    > OK, here's a fix (at the end), at least of what I was able
                    > to reproduce. Tested on 6.2.0.
                    >
                    > *BUT* it fixes it by bringing back the Most Evil Hack
                    > entry_changed_cb(), carefully #ifdef-ed out from the Gtk+2
                    > code paths. It however took care of making the buttons
                    > sensitive when the entry was nonempty -- among other things.
                    > So if Daniel is listening and really doesn't like it so much,
                    > he should come up with some nicer fix now ;-)

                    Well, so long as this fixes the problem and doesn't introduce a new one
                    we might as well use this solution.

                    Hopefully Daniel does respond some day...

                    --
                    ARTHUR: Ni!
                    BEDEVERE: Nu!
                    ARTHUR: No. Ni! More like this. "Ni"!
                    BEDEVERE: Ni, ni, ni!
                    "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

                    /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
                    /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
                    \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
                    \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///
                  • David Necas (Yeti)
                    ... It s not so hard to split the callback to two, one taking care of button sensitivity and one of search text synchronization (i.e. the [cite] nonsense,
                    Message 9 of 10 , Jul 25, 2003
                      On Sun, Jul 20, 2003 at 06:00:47PM +0200, Bram Moolenaar wrote:
                      >
                      > David Necas wrote:
                      >
                      > > > > >> > However, the find and find/replace dialogs' buttons has been disabled
                      > > > > >> > (grey). But, I still can use it by press the enter to search and can't
                      > > > > >> > use those buttons thought.
                      > >
                      > > OK, here's a fix (at the end), at least of what I was able
                      > > to reproduce. Tested on 6.2.0.
                      > >
                      > > *BUT* it fixes it by bringing back the Most Evil Hack
                      > > entry_changed_cb(), carefully #ifdef-ed out from the Gtk+2
                      > > code paths. It however took care of making the buttons
                      > > sensitive when the entry was nonempty -- among other things.
                      > > So if Daniel is listening and really doesn't like it so much,
                      > > he should come up with some nicer fix now ;-)
                      >
                      > Well, so long as this fixes the problem and doesn't introduce a new one
                      > we might as well use this solution.
                      >
                      > Hopefully Daniel does respond some day...

                      It's not so hard to split the callback to two, one taking
                      care of button sensitivity and one of search text
                      synchronization (i.e. the [cite] nonsense, particularly evil
                      incarnation of braindeadness [/cite]) -- I could do it.

                      However, I don't like the idea of making the dialog behave
                      differently with Gtk+1 and Gtk+2 again only because someone
                      doesn't like something. Thus I would probably remove the
                      search text synchronization completely. Please protest
                      (hmm... I doubt anyone in this maling list uses the GUI find
                      & replace dialogs...).

                      Regards,

                      Yeti


                      --
                      Do not use tab characters. Their effect is not predictable.
                    • David Necas (Yeti)
                      ... OK, the attached patch decouples the dialogs (note: needs the previous sensitivity-fixing patch applied first). Now, when they are run sequentially, the
                      Message 10 of 10 , Jul 26, 2003
                        On Fri, Jul 25, 2003 at 05:18:24PM +0200, David Necas (Yeti) wrote:
                        >
                        > However, I don't like the idea of making the dialog behave
                        > differently with Gtk+1 and Gtk+2 again only because someone
                        > doesn't like something. Thus I would probably remove the
                        > search text synchronization completely. Please protest
                        > (hmm... I doubt anyone in this maling list uses the GUI find
                        > & replace dialogs...).

                        OK, the attached patch decouples the dialogs (note: needs
                        the previous sensitivity-fixing patch applied first).

                        Now, when they are run sequentially, the search string and
                        flags are normally inherited, but when they are both open
                        simultaneously, they are independent. The behaviour is the
                        same with Gtk+1 and Gtk+2. Shoot me if this is not more
                        logical.

                        Regards,

                        Yeti


                        --
                        Do not use tab characters. Their effect is not predictable.



                        --- vim62.orig/src/gui_gtk.c 2003-07-25 01:32:08.000000000 +0200
                        +++ vim62/src/gui_gtk.c 2003-07-26 13:28:59.000000000 +0200
                        @@ -167,11 +167,7 @@

                        static void entry_activate_cb(GtkWidget *widget, gpointer data);
                        static void entry_changed_cb(GtkWidget *entry, GtkWidget *dialog);
                        -static void find_direction_cb(GtkWidget *widget, gpointer data);
                        static void find_replace_cb(GtkWidget *widget, gpointer data);
                        -static void wword_match_cb(GtkWidget *widget, gpointer data);
                        -static void mcase_match_cb(GtkWidget *widget, gpointer data);
                        -static void repl_dir_cb(GtkWidget *widget, gpointer data);

                        #if defined(FEAT_TOOLBAR) && defined(HAVE_GTK2)
                        /*
                        @@ -2515,8 +2511,6 @@
                        frdp->wword = gtk_check_button_new_with_label(CONV(_("Match whole word only")));
                        gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(frdp->wword),
                        (gboolean)wword);
                        - gtk_signal_connect(GTK_OBJECT(frdp->wword), "clicked",
                        - GTK_SIGNAL_FUNC(wword_match_cb), NULL);
                        if (do_replace)
                        gtk_table_attach(GTK_TABLE(table), frdp->wword, 0, 1023, 2, 3,
                        GTK_FILL, GTK_EXPAND, 2, 2);
                        @@ -2528,8 +2522,6 @@
                        frdp->mcase = gtk_check_button_new_with_label(CONV(_("Match case")));
                        gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(frdp->mcase),
                        (gboolean)mcase);
                        - gtk_signal_connect(GTK_OBJECT(frdp->mcase), "clicked",
                        - GTK_SIGNAL_FUNC(mcase_match_cb), NULL);
                        if (do_replace)
                        gtk_table_attach(GTK_TABLE(table), frdp->mcase, 0, 1023, 3, 4,
                        GTK_FILL, GTK_EXPAND, 2, 2);
                        @@ -2555,10 +2547,6 @@
                        gtk_radio_button_group(GTK_RADIO_BUTTON(frdp->up)),
                        CONV(_("Down")));
                        gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(frdp->down), TRUE);
                        - gtk_signal_connect(GTK_OBJECT(frdp->down), "clicked",
                        - (do_replace) ? GTK_SIGNAL_FUNC(repl_dir_cb)
                        - : GTK_SIGNAL_FUNC(find_direction_cb),
                        - NULL);
                        #ifdef HAVE_GTK2
                        gtk_container_set_border_width(GTK_CONTAINER(vbox), 2);
                        #endif
                        @@ -2804,70 +2792,6 @@
                        }

                        /*
                        - * The following are used to synchronize the direction setting
                        - * between the search and the replace dialog.
                        - */
                        -/*ARGSUSED*/
                        - static void
                        -find_direction_cb(GtkWidget * widget, gpointer data)
                        -{
                        - gboolean direction_down = GTK_TOGGLE_BUTTON(widget)->active;
                        -
                        - if (repl_widgets.dialog)
                        - {
                        - GtkWidget *w;
                        - w = direction_down ? repl_widgets.down : repl_widgets.up;
                        -
                        - if (!GTK_TOGGLE_BUTTON(w)->active)
                        - gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(w), TRUE);
                        - }
                        -}
                        -
                        -/*ARGSUSED*/
                        - static void
                        -repl_dir_cb(GtkWidget *widget, gpointer data)
                        -{
                        - gboolean direction_down = GTK_TOGGLE_BUTTON(widget)->active;
                        -
                        - if (find_widgets.dialog)
                        - {
                        - GtkWidget *w;
                        - w = direction_down ? find_widgets.down : find_widgets.up;
                        -
                        - if (!GTK_TOGGLE_BUTTON(w)->active)
                        - gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(w), TRUE);
                        - }
                        -}
                        -
                        -/*ARGSUSED*/
                        - static void
                        -wword_match_cb(GtkWidget * widget, gpointer data)
                        -{
                        - gboolean active = GTK_TOGGLE_BUTTON(widget)->active;
                        -
                        - if (find_widgets.dialog)
                        - gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(find_widgets.wword),
                        - active);
                        - if (repl_widgets.dialog)
                        - gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(repl_widgets.wword),
                        - active);
                        -}
                        -
                        -/*ARGSUSED*/
                        - static void
                        -mcase_match_cb(GtkWidget * widget, gpointer data)
                        -{
                        - gboolean active = GTK_TOGGLE_BUTTON(widget)->active;
                        -
                        - if (find_widgets.dialog)
                        - gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(find_widgets.mcase),
                        - active);
                        - if (repl_widgets.dialog)
                        - gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(repl_widgets.mcase),
                        - active);
                        -}
                        -
                        -/*
                        * Syncing the find/replace dialogs on the fly is utterly useless crack,
                        * and causes nothing but problems. Please tell me a use case for which
                        * you'd need both a find dialog and a find/replace one at the same time,
                        @@ -2875,6 +2799,8 @@
                        * all the time. I don't think it's worthwhile to fix this nonsense,
                        * particularly evil incarnation of braindeadness, whatever; I'd much rather
                        * see it extinguished from this planet. Thanks for listening. Sorry.
                        + *
                        + * Coupling removed, only sensitivity kept -- Yeti (2003-07-26)
                        */
                        static void
                        entry_changed_cb(GtkWidget * entry, GtkWidget * dialog)
                        @@ -2890,30 +2816,13 @@
                        nonempty = (entry_text[0] != '\0');

                        if (dialog == find_widgets.dialog)
                        - {
                        gtk_widget_set_sensitive(find_widgets.find, nonempty);
                        - if (repl_widgets.dialog)
                        - {
                        - gtk_widget_set_sensitive(repl_widgets.find, nonempty);
                        - gtk_widget_set_sensitive(repl_widgets.replace, nonempty);
                        - gtk_widget_set_sensitive(repl_widgets.all, nonempty);
                        - if (strcmp(entry_text,
                        - gtk_entry_get_text(GTK_ENTRY(repl_widgets.what))))
                        - gtk_entry_set_text(GTK_ENTRY(repl_widgets.what), entry_text);
                        - }
                        - }
                        +
                        if (dialog == repl_widgets.dialog)
                        {
                        gtk_widget_set_sensitive(repl_widgets.find, nonempty);
                        gtk_widget_set_sensitive(repl_widgets.replace, nonempty);
                        gtk_widget_set_sensitive(repl_widgets.all, nonempty);
                        - if (find_widgets.dialog)
                        - {
                        - gtk_widget_set_sensitive(find_widgets.find, nonempty);
                        - if (strcmp(entry_text,
                        - gtk_entry_get_text(GTK_ENTRY(find_widgets.what))))
                        - gtk_entry_set_text(GTK_ENTRY(find_widgets.what), entry_text);
                        - }
                        }
                        }
                      Your message has been successfully submitted and would be delivered to recipients shortly.