Menu

#566 Update LxTask gtk3 api.

-
open
nobody
lxtask (8)
5
2020-04-05
2020-03-28
Flavius
No

Hi all.

I prepared patch to build lxtask on actual gtk3 with no warnings.

1 Attachments

Discussion

  • Lonely Stranger

    Lonely Stranger - 2020-03-28

    Please, attach patch in unified format. Yours cannot be applied. Thank you.

     
  • Flavius

    Flavius - 2020-03-29

    Here is the one created with git format-patch. Hope this works.

     
    • Lonely Stranger

      Lonely Stranger - 2020-04-01

      Thank you. Patch looks fine except you used gtk_menu_item_new() for menu items and that will create menu lines with empty labels. If you wish to drop stock image menu class then you should add a label with mnemonics and a stock image to the menu item. Read https://developer.gnome.org/gtk3/stable/GtkImageMenuItem.html for details, please.

       

      Last edit: Lonely Stranger 2020-04-01
  • Flavius

    Flavius - 2020-03-29

    And what do you think about using glade for gtk 3.2 + version?

     
    • Lonely Stranger

      Lonely Stranger - 2020-04-01

      Negative. It will break GTK+2 build. I'm sorry.

       
  • Flavius

    Flavius - 2020-04-05

    I used example from gtk docs and fixed issues you metioned. This patch should be applied after first one.

     
    • Lonely Stranger

      Lonely Stranger - 2020-04-05

      You missed GTK_STOCK_PREFERENCES in your changes. Thank you.

       
      • Flavius

        Flavius - 2020-04-05

        What do you mean? I found no usage of GTK_STOCK_PREFERENCES in code for gtk3.10 and above. But for older versions it was preserved.

         
        • Lonely Stranger

          Lonely Stranger - 2020-04-05

          I mean - with your changes there will be no Preferences item in the menu.

           
          • Flavius

            Flavius - 2020-04-05

            Oh, yes, sorry. Fixed.

             

Log in to post a comment.