Re: [Rhythmbox-devel] Opening a GUI after clicking on a menu item
- From: david mohammed <davidmohammed gmail com>
- To: rhythmbox-devel gnome org
- Subject: Re: [Rhythmbox-devel] Opening a GUI after clicking on a menu item
- Date: Fri, 12 Jul 2013 12:18:03 +0000 (UTC)
Ankit Arora <ankitarora121 <at> gmail.com> writes:
I understood how to add a plugin's menu item and execute a function, now I
want to understand how to open a popup window after clicking on that menu
item and then perform my actions after selecting options in that window. Any
links/resources/examples will be appreciated.
I don't know how much of the WritingGuide to follow because I believe a
lot of things have changed after it was last updated.
_______________________________________________
rhythmbox-devel mailing list
rhythmbox-devel <at> gnome.org
https://mail.gnome.org/mailman/listinfo/rhythmbox-devel
Hi Ankit,
strictly speaking, you are now delving into GTK programming and not
rhythmbox per se -
You'll need to add a signal to your menu option.
This will invoke your callback function which you can then open your
window to do stuff.
For example - in my github project coverart-browser
(github.com/fossfreedom/coverart-browser)
ui/coverart_browser.ui
you can see the signals defined in the menu
coverart_browser_source.py - you can see the callback for example
export_embed_menu_item_callback
From there it opens a popup window which I have just wrapped up in a class
in the file coverart_export.py
Hope this helps
david
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]