fredbezies | 27 Jan 10:43
Picon
Gravatar

Another error, in pref-ui.cc compilation :(

Hello.

Log here :

  CC     pan-pixbufs.o
  CXX    pan-tree.o
  CXX    post-ui.o
  CXX    prefs.o
  CXX    prefs-file.o
  CXX    prefs-ui.o
  CXX    progress-view.o
  CXX    profiles-dialog.o
prefs-ui.cc: In member function 'void pan::PrefsDialog::edit_shortkey(gpointer)':
prefs-ui.cc:129:192: error: 'GtkDialog' has no member named 'vbox'
prefs-ui.cc:133:192: error: 'GtkDialog' has no member named 'vbox'
make[3]: *** [prefs-ui.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/home/fred/pan-git/src/pan2-build/pan/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/fred/pan-git/src/pan2-build/pan'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fred/pan-git/src/pan2-build'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Looks like pan is having a bad day today !

--
Frederic Bezies
fredbezies-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

_______________________________________________
Pan-devel mailing list
Pan-devel@...
https://lists.nongnu.org/mailman/listinfo/pan-devel
Heinrich Müller | 26 Jan 21:43
Picon
Picon
Gravatar

ANN: Custom hotkey support

Has been added. 
Feel free to test it and report feedback if you like.

Cheers.
_______________________________________________
Pan-devel mailing list
Pan-devel@...
https://lists.nongnu.org/mailman/listinfo/pan-devel
walt | 24 Jan 23:04
Picon

missing icon file in latest git?

Hi Heinrich,

My git build has failed for two days because icon_prefs_applications.png
can't be found.  Did you forget to commit it? :p
Duncan | 23 Jan 05:18
Picon

Feedback: New prefs dialog layout

After deciding to try a bit different workaround to the gnome-doc-
utils.make issue, I built and installed an updated pan for the first time 
in some days, and got to see the new prefs dialog for the first time.  
Here's some feedback.

I like the tabstrip ribbon at the top, with the arrows at each end.  That 
should definitely help with the small resolution over-sized width problem.

But of course I've some ideas for improvements.  See the last paragraph 
below for IMO the most critical one.

The best improvement I could suggest for the tabribbon would be adding 
icons, as it looks a bit plain and the many tabs undistinctive and hard 
to pick out at a glance, as it is.  An option for icons-only, no text, 
would be nice, but I'm not sure how it fits in with the gnome/gtk 
guidelines.  But icons and text would at least break up the long string 
of instinctive tab labels a bit.

Of course, seeing the icon improvements already made elsewhere in pan, I 
suspect you're already on it, and this is just the initial skeleton 
implementation. =:^)

Also, currently the tabs seem quite wide, apparently all set to the width 
necessary to display the longest text one, status and notifications.  
Either/both variable width or shortening the name of that one (maybe just 
notifications?) will help dramatically, as it'll mean less clicking of 
the arrows to see the other tabs.  That's another argument for icons-only 
as well, since they'll be MUCH shorter and will thus allow the whole tab 
list to show at once for many people.  (That's the primary reason I'd use 
icons-only.)

Alphabetizing the tabs would also help, tho I'd suggest keeping a 
"general" or the current behavior tab first as an initial open-
preferences landing tab.  There's enough tabs now to make the 
alphabetizing useful, particularly with the scrolling ribbon tabbar when 
only a tab or two are show at a time.

Meanwhile, as PKovar suggested a couple weeks (?) ago, combining some of 
the only-a-couple-options tabs might help.  Charset, fonts, 
notifications, applications, upload and autosave, are all small enough 
that the could potentially be combined into fewer tabs.  I'd say fonts 
could absorb charset, apps could absorb autosave and the cache size 
settings from the behavior tab could move here too, behavior could then 
take notifications since cache size would be gone, and upload encoder 
size could move into either posting profile or group options, since for 
instance ISO-image groups are likely to want rather larger chunk sizes 
than image groups so making that a per-posting-profile or per-group 
setting makes a lot of sense.

Alternatively, if the tabs labels are all set to icons-only, the tabs 
will be small enough that splitting out each section in behavior into its 
own tab would be reasonable.

Another alternative would be nested tabbars.  This works especially well 
with (larger) icons for the primary tab groups, in a setup much like 
firefox's preferences dialog. or take a look at the setup of firefox's 
configuration mania addon dialog, if you have it installed, for nested 
tabbars with a text label rather than icons implementation.  The only 
problem with this one is that then someone has to decide how the primary 
categories are setup and which one gets each current tab.

Meanwhile, three suggestions about the new hotkeys tab. =:^)

It definitely needs the sorted/grouped.  I'd suggest grouping by window 
first and then by menu, with the main window menus listed first, and 
subsequent windows only listing additional options that don't appear on 
the main menu.  That's the organization I've been using here with 
accels.txt for years.

Alternatively, make it a listview, with click to sort column headers, 
possibly with window, menu, submenu and hotkey columns.  If you click an 
entry it then pops up a mini-dialog (or alternately expands the entry 
into a second row with settings options, only one expanded at a time so 
clicking one collapses the previous one) allowing to change or delete it, 
instead of the text-box table in the current implementation.

If that's going to take a bit to implement, shorter term, at least insert 
a bit of explanatory text at the top, directly under the tab bar, saying 
what it's all about.  The tab's rather overwhelming at the moment, and 
deserves a line or two of explanation for now at least, with the sorting/
grouping coming later if it's going to be more than trivial to implement.

Finally, when I opened preferences, the new and unsorted hotkeys tab was 
the first one shown, with only one other tab visible on the tabbar.  That 
was VERY overwhelming, even expecting the new hotkeys dialog/tab (which I 
opened prefs in search of).  My immediate reaction was that this must be 
the new shortcuts/hotkeys dialog, but what happened to the other tabs, 
since only one was displayed?  I thought the build must have gone 
terribly wrong some how and omitted the code for all the other tabs 
entirely!  Then I clicked the next tab and in so doing saw the arrows, 
which I then clicked to reveal other tabss, but PLEASE, don't open the 
hotkeys tab first, at least in its presently overwhelming form, or you 
WILL have pan newbies running screaming for the exits!  I've been a pan 
user for years and LIKE config options, and that was /still/ close to my 
reaction -- WHAT HAVE I DONE -- HOW DID I BREAK IT NOW?  Given that, I 
can only imagine what a typical afraid-to-touch-the-config-for-fear-
they'll-break-something user might do.  Running screaming for the exit 
must surely be close, however!

If the usual behavior/general tab is shown first, as pan used to do, then 
the effect of the hotkeys tab even as it is, when people click on it, 
won't be so bad, since they'll have seen a rather more normal config tab 
first and thus be a bit more confident in their ability to work with 
pan's config, before getting hit with the definitely formidable and 
imposing hotkeys tab.

--

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman
Roger Berny | 22 Jan 15:51
Picon
Favicon
Gravatar

No gtk_notebook_set_homogeneous_tabs function in gtk3

I had to apply that patch:

--- a/pan/gui/prefs-ui.cc       2012-01-21 15:43:56.000000000 +0100
+++ b/pan/gui/prefs-ui.cc       2012-01-22 15:21:58.000000000 +0100
<at> <at> -726,7 +726,7 <at> <at>
 
   GtkWidget * notebook = gtk_notebook_new ();
 
-  gtk_notebook_set_homogeneous_tabs (GTK_NOTEBOOK(notebook), true);
+  //gtk_notebook_set_homogeneous_tabs (GTK_NOTEBOOK(notebook), true);
   gtk_notebook_set_scrollable (GTK_NOTEBOOK(notebook), true);
 
   // Behavior


The gtk_notebook_set_homogeneous_tabs function doesn't exist in gtk3; it was already deprecated in gtk2

The source compiles without that line in pan/gui/prefs-ui.cc.
--- a/pan/gui/prefs-ui.cc	2012-01-21 15:43:56.000000000 +0100
+++ b/pan/gui/prefs-ui.cc	2012-01-22 15:21:58.000000000 +0100
@@ -726,7 +726,7 @@

   GtkWidget * notebook = gtk_notebook_new ();

-  gtk_notebook_set_homogeneous_tabs (GTK_NOTEBOOK(notebook), true);
+  //gtk_notebook_set_homogeneous_tabs (GTK_NOTEBOOK(notebook), true);
   gtk_notebook_set_scrollable (GTK_NOTEBOOK(notebook), true);

   // Behavior
_______________________________________________
Pan-devel mailing list
Pan-devel@...
https://lists.nongnu.org/mailman/listinfo/pan-devel
fredbezies | 22 Jan 13:22
Picon
Gravatar

How to help updating a translation ?

Hello.

I worked on french translation, modified / added about 150 to 200 lines.

Simple question : how to to transfer it in order to get it taken into account ?

Thanks for your answer.

--
Frederic Bezies
fredbezies-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

_______________________________________________
Pan-devel mailing list
Pan-devel@...
https://lists.nongnu.org/mailman/listinfo/pan-devel
fredbezies | 22 Jan 10:46
Picon
Gravatar

Building error in prefs.cc, about a missing hotkeys.h

Hello. Trying to build it a few minutes ago and got this error :

prefs.cc:34:21: fatal error: hotkeys.h: No such file or directory
compilation terminated.
make[3]: *** [prefs.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/home/fred/Téléchargements/pan-git/src/pan2-build/pan/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/fred/Téléchargements/pan-git/src/pan2-build/pan'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fred/Téléchargements/pan-git/src/pan2-build'
make: *** [all] Error 2

--
Frederic Bezies
fredbezies-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

_______________________________________________
Pan-devel mailing list
Pan-devel@...
https://lists.nongnu.org/mailman/listinfo/pan-devel
Duncan | 22 Jan 10:14
Picon

gnome-doc-utils redux

While I know little more about the /why/ than I did before, I bumbled 
around with the commit ( d49229012425f2662c2b7a9694c517a23f31cbff ) that 
triggered my gnome-doc-utils issues until I finally figured out what 
actual change is triggering the problem.

You and I both have been looking in Makefile.am, but that's not the 
problem.  The problem is...

configure.in, starting on line 270 (problem line 274)

 AC_CONFIG_FILES([Makefile
                  pan.spec
                  pan.iss
                  README.windows
+                 help/Makefile
                  po/Makefile.in
                  uulib/Makefile
                  pan/Makefile

If I delete that line, everything's fine.  Looking at the context, I see 
no conditional around that saying only to include it in the list if help 
is enabled...

That's what causes automake to error out later, since automake tries to 
create help/Makefile even when help is turned off, and help/Makefile.am 
has...

include $(top_srcdir)/gnome-doc-utils.make

... as its first line, but gnome-doc-utils.make apparently won't get 
copied to $top_srcdir unless help is turned on.

So I don't know how to do it, but that help/Makefile line apparently must 
be made conditional, however it's done...

--

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman
fredbezies | 19 Jan 08:09
Picon
Gravatar

Any way to disable help locales to be build ?

Hello. As spanish help is busted, so busting build process too, any flags to deactivate it for now ?

My error log :

make[2]: Entering directory `/home/fred/Téléchargements/pan-git/src/pan2-build/help'
msgfmt -o de/de.mo de/de.po
msgfmt -o es/es.mo es/es.po
if ! test -d de/; then mkdir de/; fi
if ! test -d es/; then mkdir es/; fi
if [ -f "C/pan.xml" ]; then d="../"; else d="/home/fred/Téléchargements/pan-git/src/pan2-build/help/"; fi; \
mo="de/de.mo"; \
if [ -f "${mo}" ]; then mo="../${mo}"; else mo="/home/fred/Téléchargements/pan-git/src/pan2-build/help/${mo}"; fi; \
(cd de/ && \
  `which xml2po` -m docbook -e -t "${mo}" \
    "${d}C/pan.xml" > pan.xml.tmp && \
    cp pan.xml.tmp pan.xml && rm -f pan.xml.tmp)
if [ -f "C/pan.xml" ]; then d="../"; else d="/home/fred/Téléchargements/pan-git/src/pan2-build/help/"; fi; \
mo="es/es.mo"; \
if [ -f "${mo}" ]; then mo="../${mo}"; else mo="/home/fred/Téléchargements/pan-git/src/pan2-build/help/${mo}"; fi; \
(cd es/ && \
  `which xml2po` -m docbook -e -t "${mo}" \
    "${d}C/pan.xml" > pan.xml.tmp && \
    cp pan.xml.tmp pan.xml && rm -f pan.xml.tmp)
xsltproc -o pan-C.omf --stringparam db2omf.basename pan --stringparam db2omf.format 'docbook' --stringparam db2omf.dtd "-//OASIS//DTD DocBook XML V4.1.2//EN" --stringparam db2omf.lang C --stringparam db2omf.omf_dir "/usr/share/omf" --stringparam db2omf.help_dir "/usr/share/gnome/help" --stringparam db2omf.omf_in "/home/fred/Téléchargements/pan-git/src/pan2-build/help/pan.omf.in"  --stringparam db2omf.scrollkeeper_cl "`scrollkeeper-config --pkgdatadir`/Templates/C/scrollkeeper_cl.xml" `/usr/bin/pkg-config --variable db2omf gnome-doc-utils` C/pan.xml || { rm -f "pan-C.omf"; exit 1; }
db2omf: Could not construct the OMF subject element.
  Add a subject element to /home/fred/Téléchargements/pan-git/src/pan2-build/help/pan.omf.in.
make[2]: *** [pan-C.omf] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/home/fred/Téléchargements/pan-git/src/pan2-build/help'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fred/Téléchargements/pan-git/src/pan2-build'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...


--
Frederic Bezies
fredbezies-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

_______________________________________________
Pan-devel mailing list
Pan-devel@...
https://lists.nongnu.org/mailman/listinfo/pan-devel
fredbezies | 19 Jan 08:00
Picon
Gravatar

[pan-devel] Spanish translation is busted, busting building process :

Got this, this morning :

msgfmt -o es/es.mo es/es.po
xsltproc -o pan-C.omf --stringparam db2omf.basename pan --stringparam db2omf.format 'docbook' --stringparam db2omf.dtd "-//OASIS//DTD DocBook XML V4.1.2//EN" --stringparam db2omf.lang C --stringparam db2omf.omf_dir "/usr/share/omf" --stringparam db2omf.help_dir "/usr/share/gnome/help" --stringparam db2omf.omf_in "/home/fred/Téléchargements/pan-git/src/pan2-build/help/pan.omf.in"  --stringparam db2omf.scrollkeeper_cl "`scrollkeeper-config --pkgdatadir`/Templates/C/scrollkeeper_cl.xml" `/usr/bin/pkg-config --variable db2omf gnome-doc-utils` C/pan.xml || { rm -f "pan-C.omf"; exit 1; }
db2omf: Could not construct the OMF subject element.
  Add a subject element to /home/fred/Téléchargements/pan-git/src/pan2-build/help/pan.omf.in.
make[2]: *** [pan-C.omf] Error 1
make[2]: Leaving directory `/home/fred/Téléchargements/pan-git/src/pan2-build/help'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fred/Téléchargements/pan-git/src/pan2-build'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Looks like spanish translation is busted...

--
Frederic Bezies
fredbezies <at> gmail.com

_______________________________________________
Pan-devel mailing list
Pan-devel@...
https://lists.nongnu.org/mailman/listinfo/pan-devel
Duncan | 19 Jan 07:07
Picon

Commit 7618ee65, custom shortcuts?

I just did a git-pull for the first time in a couple weeks, and in the
subsequent git-whatchanged, I see this:

commit 7618ee65e5ccc98b568ac5cdee0595004af8e4f0 Author: Heinrich Müller
<henmull <at> src.gnome.org>
Date:   Thu Jan 12 23:21:41 2012 +0100

-roughly implemented custom shortcuts (file pan.shortcuts is auto-created
the first time pan is exited) [snip]

???

We've had custom shortcuts "since forever."  In fact, Charles
reimplemented that shortly after the port to gtk2, from gnome1, back in
the pan-0.12 era, so we're talking what, maybe eight years ago now?  And
AFAIK, when he did the C++ rewrite, that feature was in first public C++
release, 0.90, as well.  If it wasn't, it was added relatively quickly,
well before 0.100.

The shortcut dump was (as the new one is) auto-created when pan was
exited, as accels.txt.  It was (and still is, last I checked) more or less
a straight unordered function dump, along with assigned shortcuts, with
all lines semicolon-commented.

One could either edit the file directly or use the mouse-hover-over-menu-
item, hit-desired-key (or delete to remove the assignment), method, altho
the latter was somewhat limited due to the unavailability of the menu-
accelerator keys, since they'd activate the associated menu action instead
of assigning the key as intended.  As a result, I used the edit-
file-directly method, here.

However, since the accels.txt file was a more or less unordered simple
function/hotkey dump, and pan rewrote it as such each time it closed, the
editing process wasn't as simple as one might have initially imagined. For
just changing a single entry, the simplest method was to use the editor's
search functionality, finding and editing the appropriate line (without
forgetting to remove the semicolon commenting it, thus signifying a
default setting, that was the usual first character of the line), then
saving (with pan closed, of course, so it'd load the new setting when it
opened and re-dump it each time it closed after that).

But I was rather more systematic than that.  I setup a whole custom hotkey
scheme, thus editing quite a number of defaults.  As such, I saved off the
dump as a different file, then reordered it so the entries appeared in the
same order as they did in the pan menus.  I could then edit the copy and
replace the scrambled dump file (which pan would re-scramble every time it
exited) when necessary.  Additionally, I kept a table that tracked all the
hotkeys used and the functions they were assigned to, so I could
immediately see what was free and what wasn't and what functions were
mapped to specific shortcuts without looking at the now ordered dump, thus
making it much easier to arrange it such that all group- operations
shortcuts were "g"-based, all thread-ops shortcuts "t" based, all
individual article operations "a" based, etc.  Further, all pan's various
preferences windows (except the main one, which is always ctrl-p in the
apps I can set, thus including pan), the task manager and log windows,
etc, were all accessible using all combos with all three modifiers
(ctrl-alt-shift), L=log, T=tasks, N=newsservers, G=group- prefs... etc.

I still use that scheme today, and it still works. I've also mentioned it
several times over the years, and posted it a number of times, so it's
quite likely a number of other users are using either it, or some variant
thereof.  =:^)  (In some cases, they just wanted my file to start their
own theme with, so as not to have to do the reordering themselves. Whether
they ultimately decided to keep my theme or setup their own, then, I
haven't the foggiest, but I was happy to post it and prevent them having
to unnecessarily redo all the reordering I had already done.)

Thus, I'm quite wondering and worried about the new custom shortcut scheme
breaking what wasn't broken! =:^(

But I can't build ATM due to the gnome-doc-utils issue I just posted 
about, so can't actually test the new behavior yet and all I have to go 
on is the commit comment.

So, umm... is this supposed to be "new and improved" custom shortcuts 
handling, or were you simply not aware of the old accels.txt mechanism?

If it's the former, I assume I'll be able to configure all the same 
functionality, for the same shortcuts, even if I have to redo them 
manually, correct?

If it's the latter, this might still be better if it has a reasonable UI 
and/or a logically sorted config file.  The old way seemed rather hackish, 
but FWIW, it /is/ what the gtk-based claws-mail is using as well, with a 
different filename of course, but because it used the same method, it was 
rather easy for me to use the same techniques on claws-mail as I was 
already using for pan, when I switched from kmail to claws-mail due to 
kmail's akonadification.  But I'm quite concerned that I don't lose the 
ability to configure the same shortcuts for stuff that doesn't have 
shortcuts by default, the old way, but that I was able to configure 
shortcuts for using accels.txt.

--

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

_______________________________________________
Pan-devel mailing list
Pan-devel <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/pan-devel

Gmane