After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 139145 - Approach to HIGify File Types and Programs + cleanups
Approach to HIGify File Types and Programs + cleanups
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: [obsolete] File types and programs
git master
Other All
: High minor
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-04-05 15:11 UTC by Christian Neumair
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed Patch. (144.42 KB, patch)
2004-04-05 15:12 UTC, Christian Neumair
none Details | Review
Simple Sample Screenshot (75.31 KB, image/png)
2004-04-05 15:16 UTC, Christian Neumair
  Details
Proposed Patch #2. (144.41 KB, patch)
2004-04-05 16:35 UTC, Christian Neumair
none Details | Review
Third patch. Hopefully the last one :). (144.91 KB, patch)
2004-04-16 20:30 UTC, Christian Neumair
none Details | Review

Description Christian Neumair 2004-04-05 15:11:58 UTC
Glade is horrible when it comes to diffs, no matter how you try to split up your
patches. Therefore I decided to put all of this into one huge patch - as always,
maintainers try to kill me, but continuously fail :).
What it does:
- Remove #ifdef SUPPORT_CHECK_CONTENT code, nobody knows what it does (according
to Jody's ChangeLog entry)
- Use macro G_CALLBACK format for signal connection calls, add some G_OBJECT macros.
- Directly use glade for GtkDialogs and their properties (model, transient, etc.)
- Heavily HIGify the beast

regs,
 Chris
Comment 1 Christian Neumair 2004-04-05 15:12:56 UTC
Created attachment 26355 [details] [review]
Proposed Patch.
Comment 2 Christian Neumair 2004-04-05 15:16:03 UTC
Created attachment 26356 [details]
Simple Sample Screenshot
Comment 3 Sean Middleditch 2004-04-05 15:28:51 UTC
Would it perhaps be a good idea to display the file type icon in the main file
type list?  When looking for a file type, it could make finding the right one a
lot easier, especially when Nautilus accustoms you to using the icon.
Comment 4 Tommi Komulainen 2004-04-05 15:43:53 UTC
Isn't the 'Add Filename Extension' dialog a bit too much?  Wouldn't it be nicer
to offer editing the extension in place in the list?  Much like gconf-editor does?
Comment 5 Christian Neumair 2004-04-05 16:04:02 UTC
Sean: Should be doable very easy. I coded a treeview sample app some weeks ago
that used GNOME-VFS and did it like a charm. (=> #139152)
Tommi: Yes, nice idea. The problem is that in-place editing inside the list
would require an editable cell renderer - as far as I know - we currently
haven't, at least not for the control-center. (=> #139151)

regs,
 Chris
Comment 6 Christian Neumair 2004-04-05 16:35:31 UTC
Created attachment 26361 [details] [review]
Proposed Patch #2.

The last one contained one G_OBJECT macro too much :P. When launching
gnome-file-types-properties with args, it crashed. Doesn't happen now.
Comment 7 Raphael Bosshard 2004-04-05 21:44:48 UTC
I'd like to see an option to define a default application for a whole group of
document-types. Eg. A default bitmap editor, a default media-player, a default
vector graphic editor, and so on.

Yes, there would arise a problem when an application cannot open a certain file
type, but that could be handlet through the applications .desktop file.

And it would easier to correct the few not supported file types than changing
all file types in a category.

Comment 8 Christian Neumair 2004-04-06 09:28:04 UTC
Raphael: #139232. Please stop adding random improvement comments to this bug
report that haven't got anything to do with this patch. Instead, file new bug
reports.
Thanks.

regs,
 Chris
Comment 9 Richard Hult 2004-04-16 17:12:25 UTC
Why are you adding G_OBJECT casts where they are not needed? No need to cast the
last argument to g_signal_connect (incidentally not needed for the first
argument either).
Comment 10 Christian Neumair 2004-04-16 17:49:57 UTC
Indeed, there is no need to cast them. I'm just used to it because I've seen it
in many places. Sorry.

regs,
 Chris
Comment 11 Christian Neumair 2004-04-16 18:12:14 UTC
encapsulating the first argument using a G_OBJECT macro seems to be pretty
common. Is it bad style? Google lists > 4000 matches.

regs,
 Chris
Comment 12 Richard Hult 2004-04-16 20:15:28 UTC
I think lots of people do that because the old gtk_signal stuff needed a
GtkObject . The g_signal stuff just takes a gpointer since it's not specific to
GObjects but can be used for any instantiable type.
Comment 13 Christian Neumair 2004-04-16 20:30:01 UTC
Created attachment 26726 [details] [review]
Third patch. Hopefully the last one :).
Comment 14 Sebastien Bacher 2004-10-21 13:54:53 UTC
the "File types and programs" capplet has been removed in 2.8, no reason to keep
this bug open, I'm closing it.