Re: indentation of c code
2008/8/17 daniel g. siegel [EMAIL PROTECTED]: hi all! i just wanted to know if someone out there has already an option file or a small script for gnu indent to indent c code to the gnome standard? There is no GNOME standard for indenting C code -- every project use their own indentation style (unfortunately). But to reformat a file to an indentation style many projects use, you can just run indent without any arguments. -- mvh Björn ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: gnome-volume-manager disables automount
David, I have filed a bug (http://bugzilla.gnome.org/show_bug.cgi?id=548221) with more detailed info, please check. Thanks, Jerry David Zeuthen wrote: On Fri, 2008-08-15 at 18:27 +0800, jijun yu wrote: gnome-volume-manager disables automount by default. The reason is that Nautilus handles it, as it said in configure.ac. But after a rough investigation, nautilus don't handle automount. So I'm a little confused here. This works just fine on Fedora and other Linux distros. File a bug against nautilus with more details and add me to the Cc? David ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Pashto/Kashmiri locale
Hi, Since 2.23 GNOME started supporting ps and ks locale but so far there is no core support for them in glibc. What libc implementations support these locales? Are you aware if localization teams put any effort in providing equal support in glibc? I'm asking as we have very strict dependency tracking in PLD Linux so we have to either remove ks and ps from all the GNOME packages or patch glibc to support them (and thus provide a directory for them). So far I was ignoring this issue but there is little time before 2.24 gets released and we'd like to make sure we can provide the best experience to our users by then :) Sorry if sending this to the desktop-devel-list was an utterly wrong idea but it seems to involve the whole suite :) -- Patryk Zawadzki ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: TARBALLS DUE: GNOME 2.23.90 beta 1 + we're freezing the UI + release notes are important! + this subject might be a bit too long
Am Montag, den 18.08.2008, 00:33 +0200 schrieb Olav Vitters: http://live.gnome.org/RoadMap Further, although that page has a lot of oneliners, the people (help wanted as it usually is just one person who we force to write the whole thing!) creating the release notes would really like a longer text as well.. meaning the stuff that ends up as a blogpost on planet.gnome.org. Indeed there's lots of Improved the xy application stuff. That's not helpful. Maintainers, please understand that the release ones are important and make it easier by elaborating (e.g. link to bug numbers or blog posts). Thanks, andre -- mailto:[EMAIL PROTECTED] | failed http://www.iomc.de/ | http://blogs.gnome.org/aklapper ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: indentation of c code
BJörn Lindqvist a écrit : [...] There is no GNOME standard for indenting C code -- every project use their own indentation style (unfortunately). But to reformat a file to an indentation style many projects use, you can just run indent without any arguments. I am sorry, but I think there is a GNOME standard for indenting C code. It's at http://developer.gnome.org/doc/guides/programming-guidelines/book1.html, chapter http://developer.gnome.org/doc/guides/programming-guidelines/code-style.html. If GNOME C projects use their own indentation style, I think it's just because only a few people have read that documentation or because GNOME as a project does not enforce it that much. GTK+ uses the GNU indentation style that is documented at http://www.gnu.org/prep/standards/standards.html. Best wishes, Dodji. ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: indentation of c code
Ysgrifennodd Dodji Seketeli: http://developer.gnome.org/doc/guides/programming-guidelines/code-style.html. Does anyone have a good idea about modelines at the tops of files? That page ought really to cover them, but it doesn't mention them. We have a bug open about it (http://bugzilla.gnome.org/show_bug.cgi?id=358866) in Metacity. If you're using an 8-char indent with GNU style, does that mean you go if (something) --eight--{ --eighteight--printf(I like cheese\n); or is the indent four in that case? I actually prefer an 8-character indent, but Metacity uses two throughout, and it's a bit late to change. I wish source control worked on the basis of tokens rather than lines, as though we were still on punched cards, so it wouldn't matter if you reformatted a block. Thomas -- Thomas Thurman, tthurman at gnome, http://blogs.gnome.org/tthurman Shell Room ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: indentation of c code
On Mon, Aug 18, 2008 at 7:22 AM, Dodji Seketeli [EMAIL PROTECTED] wrote: BJörn Lindqvist a écrit : [...] There is no GNOME standard for indenting C code -- every project use their own indentation style (unfortunately). But to reformat a file to an indentation style many projects use, you can just run indent without any arguments. I am sorry, but I think there is a GNOME standard for indenting C code. It's at http://developer.gnome.org/doc/guides/programming-guidelines/book1.html, chapter http://developer.gnome.org/doc/guides/programming-guidelines/code-style.html . If GNOME C projects use their own indentation style, I think it's just because only a few people have read that documentation or because GNOME as a project does not enforce it that much. GTK+ uses the GNU indentation style that is documented at http://www.gnu.org/prep/standards/standards.html. I would love to clean up indentation in my module but I fear that it creates useless svn blame output henceforth. ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: indentation of c code
Jason D. Clinton wrote: On Mon, Aug 18, 2008 at 7:22 AM, Dodji Seketeli [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: BJörn Lindqvist a écrit : [...] There is no GNOME standard for indenting C code -- every project use their own indentation style (unfortunately). But to reformat a file to an indentation style many projects use, you can just run indent without any arguments. I am sorry, but I think there is a GNOME standard for indenting C code. It's at http://developer.gnome.org/doc/guides/programming-guidelines/book1.html, chapter http://developer.gnome.org/doc/guides/programming-guidelines/code-style.html. If GNOME C projects use their own indentation style, I think it's just because only a few people have read that documentation or because GNOME as a project does not enforce it that much. GTK+ uses the GNU indentation style that is documented at http://www.gnu.org/prep/standards/standards.html. I would love to clean up indentation in my module but I fear that it creates useless svn blame output henceforth. svn blame has an option to ignore whitespace, fyi. Sandy ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: indentation of c code
i tried to play with gnu indent but i dont like some specific parts, e.g. some_function_with_a_very_long_name (GtkWidget *widget, GdkEvent event, gpointer data) - either i would put every argument on its line or all of those on just 1 line.. primary = g_strdup_printf (_ (some long text %s), list_length); - sorry, but no sane programmer would do stuff like that... command_line = g_strdup_printf (gnome-open mailto:?subject='%s', _(Media files)); - same as above gtk_action_group_set_sensitive (cheese_window-actions_flickr, TRUE); gtk_action_group_set_sensitive (cheese_window-actions_fspot, TRUE); gtk_action_group_set_sensitive (cheese_window-actions_account_photo, TRUE); - why should the last TRUE be on a separate line if those above arent? and so on.. mostly the problems are with long lines, where the logic is more important than a strict rule, which says you dont have to go above a certain limit (as the -l parameter does) my settings to get the above were: indent file.c -i2 -psl -di0 -bl -bli0 -nce -d0 -cli0 -pcs -nfc1 -nut -lp -hnl -nbbo --ignore-newlines -T GtkWidget -T GtkWindow -T CheeseWindow would be great if someone could help me with this! daniel On Mo, 2008-08-18 at 08:52 +0200, BJörn Lindqvist wrote: 2008/8/17 daniel g. siegel [EMAIL PROTECTED]: hi all! i just wanted to know if someone out there has already an option file or a small script for gnu indent to indent c code to the gnome standard? There is no GNOME standard for indenting C code -- every project use their own indentation style (unfortunately). But to reformat a file to an indentation style many projects use, you can just run indent without any arguments. -- this mail was sent using 100% recycled electrons daniel g. siegel [EMAIL PROTECTED] http://home.cs.tum.edu/~siegel gnupg key id: 0x6EEC9E62 fingerprint: DE5B 1F64 9034 1FB6 E120 DE10 268D AFD5 6EEC 9E62 encrypted email preferred signature.asc Description: This is a digitally signed message part ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list
Re: Pashto/Kashmiri locale
On Mon, Aug 18, 2008 at 5:02 PM, Patryk Zawadzki [EMAIL PROTECTED] wrote: Hi, Since 2.23 GNOME started supporting ps and ks locale but so far there is no core support for them in glibc. What libc implementations support these locales? Are you aware if localization teams put any effort in providing equal support in glibc? I'm asking as we have very strict dependency tracking in PLD Linux so we have to either remove ks and ps from all the GNOME packages or patch glibc to support them (and thus provide a directory for them). So far I was ignoring this issue but there is little time before 2.24 gets released and we'd like to make sure we can provide the best experience to our users by then :) Sorry if sending this to the desktop-devel-list was an utterly wrong idea but it seems to involve the whole suite :) Hi, There seems to be data for Pashto (ps) in http://unicode.org/cldr/data/common/posix/ There's none for Kashmiri. I guess the gnome-i18n list is better for discussing this. More infor on glibc locales at http://translate.sourceforge.net/wiki/guide/locales/glibc Thanks, Sayamindu -- Sayamindu Dasgupta [http://sayamindu.randomink.org/ramblings] ___ desktop-devel-list mailing list desktop-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/desktop-devel-list