-
Notifications
You must be signed in to change notification settings - Fork 747
Remove remaining gio remnants #4828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e3f7fe4
to
132f0f7
Compare
Obsoleted since the removal of the FTP layer; all file system actions are synchronous so no need to interface through George's gio layer Mime implemenation was loosely based on https://github.com/fontforge/fontforge/blob/v20120731-b/gutils/giomime.c
return ret; | ||
} | ||
|
||
enum fchooserret GFileChooserDefFilter(GGadget *g,const struct gdirentry *ent,const char *dir) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the story behind un-Unicoding dir?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No point making it unichar when everything converts back to the utf-8 form anyway
char utf8_ent_name[PATH_MAX+1]; | ||
strncpy(utf8_ent_name,u_to_c( ent->name ),PATH_MAX); | ||
utf8_ent_name[PATH_MAX]=0; | ||
mime = GIOGetMimeType(utf8_ent_name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did this functionality go?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh. Found it. (Search for GFileMimeType
.)
@@ -510,19 +459,6 @@ static void GFileChooserScanDir(GFileChooser *gfc,unichar_t *dir) { | |||
GGadgetSetList(&gfc->directories->g,ti,false); | |||
GGadgetSelectOneListItem(&gfc->directories->g,0); | |||
|
|||
if ( gfc->outstanding!=NULL ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What practical purpose did the outstanding logic serve?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was to support the async nature of FTP, like you can't get a response back immediately to directory operations.
Since we removed it, there's no need for this any more.
Any other comments? Otherwise going to merge. |
Just that I'm sad to see old code go. |
Fixes the first issue raised in fontforge#4937. Regression from fontforge#4828.
Obsoleted since the removal of the FTP layer; all file system actions are synchronous so no need to interface through George's gio layer Mime implemenation was loosely based on https://github.com/fontforge/fontforge/blob/v20120731-b/gutils/giomime.c
Fixes the first issue raised in fontforge#4937. Regression from fontforge#4828.
Obsoleted since the removal of the FTP layer; all file system actions
are synchronous so no need to interface through George's gio layer
Mime implemenation was loosely based on
https://github.com/fontforge/fontforge/blob/v20120731-b/gutils/giomime.c
Type of change