Launchpad has imported 9 comments from the remote bug at
https://bugzilla.xfce.org/show_bug.cgi?id=12043.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2015-07-04T17:26:33+00:00 bilka wrote:

Mousepad crashes when I click on "Document" > "Type de fichier" >
"Others" > "Defaults"

I guess in english it is labeled "Document" > "File Type" > "Others" >
"Defaults", my system is Debian 8 with XFCE in french.

Hope this will help.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mousepad/+bug/1745346/comments/0

------------------------------------------------------------------------
On 2015-07-04T18:09:07+00:00 G-matt-8 wrote:

Confirmed, it does it here to. I have no idea what file type "Defaults"
is supposed to be. Will have a look and see why it's crashing.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mousepad/+bug/1745346/comments/1

------------------------------------------------------------------------
On 2015-07-07T00:37:48+00:00 Andreldm-2 wrote:

Yeah, this crashes here when the editor is not empty.
GtkSourceView:ERROR:gtksourcecontextengine.c:5902:update_syntax: assertion 
failed: (state->context != NULL)
Aborted (core dumped)

Mousepad 0.4.0 GTK+2 from Arch Repo.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mousepad/+bug/1745346/comments/2

------------------------------------------------------------------------
On 2015-07-07T00:57:26+00:00 G-matt-8 wrote:

I tried looking into a bit but I haven't yet installed the sources for
the GtkSourceView version on my machine.

I wonder if "Defaults" is some weird file type we should just
skip/hide/disable it? I don't see it in Gedit's file type selection
menu.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mousepad/+bug/1745346/comments/3

------------------------------------------------------------------------
On 2015-07-07T01:01:00+00:00 Andreldm-2 wrote:

I'm taking a look at this, so far this is where the crash happens:

GTK2:
https://github.com/GNOME/gtksourceview/blob/gnome-2-30/gtksourceview/gtksourcecontextengine.c#L5902

GTK3:
https://github.com/GNOME/gtksourceview/blob/gnome-3-16/gtksourceview/gtksourcecontextengine.c#L5468

It's weird because in GTK2 there is only "Others", but in GTK3 there is
"Others->Default" and "Other->..."

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mousepad/+bug/1745346/comments/4

------------------------------------------------------------------------
On 2015-07-07T01:06:46+00:00 G-matt-8 wrote:

Ahhh ... it's a special base language definition, not a real language:

https://git.gnome.org/browse/gtksourceview/tree/data/language-
specs/def.lang

Judging by the `hidden=true` attribute in the XML and the existence of
this function:

https://developer.gnome.org/gtksourceview/stable/GtkSourceLanguage.html
#gtk-source-language-get-hidden

I guess we shouldn't be showing it, but rather checking for non-hidden
filetypes to show.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mousepad/+bug/1745346/comments/5

------------------------------------------------------------------------
On 2015-07-07T01:13:33+00:00 Andreldm-2 wrote:

Created attachment 6368
Quick patch

Yep, I wrote this quick patch and it seems to work.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mousepad/+bug/1745346/comments/6

------------------------------------------------------------------------
On 2015-07-07T01:47:26+00:00 Andreldm-2 wrote:

Created attachment 6369
Improved patch

Tested on GTK2 and GTK3.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mousepad/+bug/1745346/comments/7

------------------------------------------------------------------------
On 2015-07-07T02:52:26+00:00 G-matt-8 wrote:

Thanks André, merged as
http://git.xfce.org/apps/mousepad/commit/?id=720cf91f7b21864b4d3bb0ce18d96cfa719877ca

blk, if it still gives any grief, feel free to re-open.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mousepad/+bug/1745346/comments/8


** Changed in: mousepad
       Status: Unknown => Fix Released

** Changed in: mousepad
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1745346

Title:
  Crash when changing file type to "Default style" in "Other"

To manage notifications about this bug go to:
https://bugs.launchpad.net/mousepad/+bug/1745346/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to