-
Notifications
You must be signed in to change notification settings - Fork 29
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
Support for gedit 3.14 #3
Comments
Can the markdown preview plugin be rewritten for gedit 3.14 ? Syntax highlighting is already there, but previow in side panel would be useful. |
Would love to see this! |
Yes, there's no point in a markdown plug-in if it doesn't have support for the last version of gedit. Would be great to have this fixed. |
I assume it won't work in the just released gedit 3.16... Just great! |
I've looked into this issue yesterday and I think i figured out the problem. There are actually two things that need to be rewritten. The easy one is the side-panel. Since gedit 3.12 the panels are represented as The second issue is about the menu entries. I will try to fix this issue and submit a pull request hopefully the next days. |
resolves jpfleury#3 The panels are represented as GtkStack since 3.10, which uses `add_titled(widget, name, title)` to insert new widgets.
This should fix jpfleury#3 Since 3.10 menu items can't be added via UIManager anymore (deprecated). The *new* way is to have a seperate class of type `Gedit.AppActivatable` that uses its own method `self.extend_menu(extension_point)` to get an instance of `Gedit.MenuExtension` and extend the menu via this object. The actions still have to be added to the window instance in the original `Gedit.WindowActivatable` class. They can be added directly to the window with `window.add_action(action)`. The actions have to be of type `Gio.Action`. For now I used two `Gio.SimpleAction` intead of action groups, but the old action groups are defined for compatibility with the rest of the code. I'm not sure if action groups are necessary, if so the window also has a method `window.insert_action_group(Gio.ActionGroup)` that could be used. But the implementation of `Gio` action groups is different to the `Gtk` action groups.
This should fix jpfleury#3 Since 3.10 menu items can't be added via UIManager anymore (deprecated). The *new* way is to have a seperate class of type `Gedit.AppActivatable` that uses its own method `self.extend_menu(extension_point)` to get an instance of `Gedit.MenuExtension` and extend the menu via this object. The actions still have to be added to the window instance in the original `Gedit.WindowActivatable` class. They can be added directly to the window with `window.add_action(action)`. The actions have to be of type `Gio.Action`. For now I used two `Gio.SimpleAction` intead of action groups, but the old action groups are defined for compatibility with the rest of the code. I'm not sure if action groups are necessary, if so the window also has a method `window.insert_action_group(Gio.ActionGroup)` that could be used. But the implementation of `Gio` action groups is different to the `Gtk` action groups.
This should fix jpfleury#3 Since 3.10 menu items can't be added via UIManager anymore (deprecated). The *new* way is to have a seperate class of type `Gedit.AppActivatable` that uses its own method `self.extend_menu(extension_point)` to get an instance of `Gedit.MenuExtension` and extend the menu via this object. The actions still have to be added to the window instance in the original `Gedit.WindowActivatable` class. They can be added directly to the window with `window.add_action(action)`. The actions have to be of type `Gio.Action`. For now I used two `Gio.SimpleAction` intead of action groups, but the old action groups are defined for compatibility with the rest of the code. I'm not sure if action groups are necessary, if so the window also has a method `window.insert_action_group(Gio.ActionGroup)` that could be used. But the implementation of `Gio` action groups is different to the `Gtk` action groups.
Hi ! |
@nielsmde - thanks for the fix! |
Unfortunately, it still doesn't work with Gedit 3.18 |
Which branch did you try out? Master or my patches version? The pull request #9 for the fix is apparently still open. Hence,at the moment the fixed code is only available in this branch. |
@nielsmde. I used the version on your fork and wanted others to know it was there. |
That I got, my question was directed at @Rat-S, who wrote that it is still not working for him. |
@nielsmde I just tried your branch with gedit 3.18.3 (Fedora 23) -- unfortunately it does not work:
|
@nielsmde Thanks your pull,it successfully work with my gedit 3.18 |
thanks @nielsmde |
Please note my fork (based on @nielsmde's work): https://github.com/darkdragon-001/gedit-markdown/ Please test the latest release. Pull requests are always welcome! |
The plugin doesn't work under gedit 3.14
The text was updated successfully, but these errors were encountered: