Skip to content

Conversation

jtanx
Copy link
Contributor

@jtanx jtanx commented Oct 4, 2021

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

  • Non-breaking change

@jtanx jtanx force-pushed the gio branch 4 times, most recently from e3f7fe4 to 132f0f7 Compare October 5, 2021 00:51
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) {
Copy link
Contributor

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?

Copy link
Contributor Author

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);
Copy link
Contributor

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?

Copy link
Contributor

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 ) {
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@jtanx
Copy link
Contributor Author

jtanx commented Oct 9, 2021

Any other comments? Otherwise going to merge.

@frank-trampe
Copy link
Contributor

Just that I'm sad to see old code go.

@jtanx jtanx merged commit 9dff1f7 into fontforge:master Oct 9, 2021
@jtanx jtanx deleted the gio branch October 9, 2021 03:13
jtanx added a commit to jtanx/fontforge that referenced this pull request Mar 9, 2022
jtanx added a commit that referenced this pull request Mar 9, 2022
Fixes the first issue raised in #4937.

Regression from #4828.
Omnikron13 pushed a commit to Omnikron13/fontforge that referenced this pull request May 31, 2022
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
Omnikron13 pushed a commit to Omnikron13/fontforge that referenced this pull request May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants