Menu

quit from opgui

Anonymous
2021-05-16
2025-06-17
  • Anonymous

    Anonymous - 2021-05-16

    Hi,
    congratulate for your perfect project!
    because I use I3WM on Debian, I have no status icons on the windows, i can not quit from the program without calling the 'pkill opgui' command from a terminal.
    so I modified the source code a bit according to the gtk icons and callbacks:

    $ diff opgui-0.11.3 opgui-0.11.3_quit
    
    diff opgui-0.11.3/opgui.c opgui-0.11.3_quit/opgui.c
    36a37
    > void Quit(GtkWidget *widget,GtkWidget *window);
    2195a2197
    >   gtk_toolbar_insert_stock(GTK_TOOLBAR(toolbar),GTK_STOCK_QUIT,strings[I_QUIT],"",G_CALLBACK(Xclose),0,-1);//"Quit"
    diff opgui-0.11.3/strings.c opgui-0.11.3_quit/strings.c
    272a273
    >   STR_ID[I_QUIT]="I_QUIT";
    545a547
    >   strings_it[I_QUIT]="Quit";
    907a910
    >   strings_en[I_QUIT]="Quit";
    diff opgui-0.11.3/strings.h opgui-0.11.3_quit/strings.h
    204a205
    >   I_QUIT,
    

    regards,
    Attila

     
  • Alberto Maccioni

    That's an unusual problem and a nice solution, thanks for sharing it!
    Maybe you could post the complete source file.

     
  • Anonymous

    Anonymous - 2021-05-23

    I attached the complete sources which contains 6 added rows only.
    thanks the project again!
    Attila

     
    👍
    1
  • John Devires

    John Devires - 2025-06-17

    I had a similar problem on Linux Mint 20.3. The icons for "Read Device, Write Device and Quit" was not visible, only blank "place holders"
    Your solution, works 100%
    Thank you.

     

    Last edit: John Devires 2025-06-17
  • John Devires

    John Devires - 2025-06-17

    Also just found the latest release 0.12.4, which works 100% on Mint.
    Thank you Alberto.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.