Bug 164373

Summary: use a different toolbar name instead of "mainToolBar"
Product: [Applications] okular Reporter: James Richard Tyrer <tyrerj>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED WORKSFORME    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description James Richard Tyrer 2008-06-18 11:54:47 UTC
Version:           0.6.80 (using Devel)
Installed from:    Compiled sources
Compiler:          GCC 4.2.4 
OS:                Linux

If you add an additional toolbar by editing the "part.rc" file, it works fine in the app, but if you use the part in Konqueror, it opens with the defaults for the toolbar rather than the Text Position and Icon Size that you set.
Comment 1 Pino Toscano 2008-06-18 12:02:43 UTC
Of course, given that Konqueror merges the main toolbar of the active kpart into its own main toolbar, and the buttons have a unique global setting for those.
Comment 2 James Richard Tyrer 2008-06-18 12:50:40 UTC
No, add an additional toolbar by adding this:

 <ToolBar noMerge="1" name="okularToolBar" >
  <text>Okular Toolbar</text>
 </ToolBar>

to the "part.rc" file.

Comment 3 Pino Toscano 2008-08-05 19:51:55 UTC
Then give a better title to this bug (that is a wish really).
Comment 4 James Richard Tyrer 2008-08-06 00:15:09 UTC
Since this works in KDE 3.5 BRNCH, it is a bug not a wish-list item.

However, since I received the copy of the change in the bug, I was reminded to work on this and find that the: "part.rc" file was corrupted and that was the proximate cause although I do not know how the file became screwed up.

IAC, I am now closing this as IWFM.  PT, please take note that anyone can add additional toolbars to an app that uses an "*.rc" file to configure them.