Reply to topic

Problem adding buttom to MenuBar

User avatar navarromorales
Registered Member
Posts
2
Karma
0

Problem adding buttom to MenuBar

Wed Aug 30, 2017 12:08 pm
Hi! I'm working in a Okular'bugs that requires to create a new buttom at the menuBar, following this tutorial: https://techbase.kde.org/Development/Tu ... ng_Actions and looking at the rest of the code I have made the new action and I think all is configured correctly, but, for some reason, when I change the part.rc file, these changes aren't aplied. In order to see if that was a problem with the rest of the code I have tried to change the text fields of some entries at the .rc file and even duplicate one of them to see if that change does something but no, menubar is not changing. I also have read that I have to change the version atribute of the gui tag and I have do it, but doesn't work... ‎ I have tried to change something else in other part of the code in order to see if I wasn't building the project correctly and these changes take effect so... I don't know what to do now with it, I don't understand why changes to part.rc doesn't take effect...

There are another .rc file, called part-viewmode.rc but this file doesn't seems to render the menubar...

Any help?
User avatar navarromorales
Registered Member
Posts
2
Karma
0
I've solved it.

The program was looking for a default .rc file in other directory because I haven't told it to find it at the correct directory as said in the tutorial I was reading: https://techbase.kde.org/Development/Tu ... ng_Actions

It is necessary to run the program like this:

Code: Select all
XDG_DATA_DIRS=$HOME/share:$XDG_DATA_DIRS $HOME/bin/program


with the correct paths.

 
Reply to topic

Bookmarks



Who is online

Registered users: alfredod, Baidu [Spider], Bing [Bot], boudewijn, Capitain_Jack, capslock, Exabot [Bot], formyfriday, gerdeg, Google [Bot], gui-m, La Ninje, Majestic-12 [Bot], Sogou [Bot], TheraHedwig, Tromzy, vpinon, Yahoo [Bot], zhanxw