Pinta rpm support?

I’ve been excited to see the revitalization of the Pinta (Paint.NET + Mono) project lately.

But I wonder if anyone in OpenSUSE is picking up rpm support for it?

I would love to be able to create packages for it, but I’m new enough not to know where to begin, even after peeking at OBS.

I’ve seen it in the past here:
Index of /repositories/Mono:/Community/openSUSE_11.4
and here:
Index of /distribution/11.4/repo/oss/suse

But I don’t see any 12.1 or pinta-1.1 releases out. Any info?

Hi
Looks like 1.1 won’t build for <=11.4 at present. I’ve updated for 12.1
in my home repository if your wanting to try it out (should be there
soon).

http://download.opensuse.org/repositories/home:/malcolmlewis:/Miscellanous/openSUSE_12.1/


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.9-desktop
up 4 days 18:37, 4 users, load average: 0.04, 0.18, 0.19
GPU GeForce 8600 GTS Silent - Driver Version: 285.05.09

Thanks for that!

So far I get this on my 12.1 KDE system:

~> pinta

Unhandled Exception: System.ArgumentException: 'gtk-close' is not a valid resource name of assembly 'Pinta.Resources, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'.
  at Gdk.PixbufLoader.InitFromAssemblyResource (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0 
  at Gdk.PixbufLoader..ctor (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0 
  at Gdk.Pixbuf..ctor (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0 
  at Gdk.Pixbuf.LoadFromResource (System.String resource) [0x00000] in <filename unknown>:0 
  at Pinta.Resources.ResourceLoader.GetIcon (System.String name, Int32 size) [0x00000] in <filename unknown>:0 
  at Pinta.ResourceManager.GetIcon (System.String name, Int32 size) [0x00000] in <filename unknown>:0 
  at Pinta.ResourceManager.GetIcon (System.String name) [0x00000] in <filename unknown>:0 
  at Pinta.Gui.Widgets.OpenImagesListWidget..ctor () [0x00000] in <filename unknown>:0 
  at Pinta.OpenImagesPad.Initialize (MonoDevelop.Components.Docking.DockFrame workspace, Gtk.Menu padMenu) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreateDockAndPads (Gtk.HBox container) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreatePanels (Pinta.WindowShell shell) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreateWindow () [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow..ctor () [0x00000] in <filename unknown>:0 
  at Pinta.MainClass.Main (System.String] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: 'gtk-close' is not a valid resource name of assembly 'Pinta.Resources, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'.
  at Gdk.PixbufLoader.InitFromAssemblyResource (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0 
  at Gdk.PixbufLoader..ctor (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0 
  at Gdk.Pixbuf..ctor (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0 
  at Gdk.Pixbuf.LoadFromResource (System.String resource) [0x00000] in <filename unknown>:0 
  at Pinta.Resources.ResourceLoader.GetIcon (System.String name, Int32 size) [0x00000] in <filename unknown>:0 
  at Pinta.ResourceManager.GetIcon (System.String name, Int32 size) [0x00000] in <filename unknown>:0 
  at Pinta.ResourceManager.GetIcon (System.String name) [0x00000] in <filename unknown>:0 
  at Pinta.Gui.Widgets.OpenImagesListWidget..ctor () [0x00000] in <filename unknown>:0 
  at Pinta.OpenImagesPad.Initialize (MonoDevelop.Components.Docking.DockFrame workspace, Gtk.Menu padMenu) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreateDockAndPads (Gtk.HBox container) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreatePanels (Pinta.WindowShell shell) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreateWindow () [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow..ctor () [0x00000] in <filename unknown>:0 
  at Pinta.MainClass.Main (System.String] args) [0x00000] in <filename unknown>:0 

I just installed that noarch rpm, I didn’t add your repo, so I may have missed something…

Hi
It installed (without adding any files) fine on 12.1 32bit Gnome 3 and it started without any errors.

What mono files do you have installed?


zypper se -i mono

Hi
Found this, looks like you need the gnome icons
Let’s start! - Pinta Project Mailing List | Google Groups


zypper in gnome-icon-theme

If you can confirm it fixes the issue, will add as a requires to the package and update.

here’s what I got:

~> zypper se -i mono
Loading repository data...
Reading installed packages...

S | Name                         | Summary                                                         | Type   
--+------------------------------+-----------------------------------------------------------------+--------
i | libmono-2_0-1                | A Library for embedding Mono in your Application                | package
i | mono-addins                  | Mono Addins Framework                                           | package
i | mono-core                    | A .NET Runtime Environment                                      | package
i | mono-data                    | Database connectivity for Mono                                  | package
i | mono-data-sqlite             | Database connectivity for Mono                                  | package
i | mono-web                     | Mono implementation of ASP.NET, Remoting and Web Services       | package
i | mono-zeroconf                | A cross platform Zero Configuration Networking library for Mono | package
i | mono-zeroconf-provider-avahi | A cross platform Zero Configuration Networking library for Mono | package

I’ll try those gnome icons too soon.

I already have this: gnome-icon-theme-3.2.1.2-1.2.noarch, and still no app launch.

Hi
Strange indeed. Is there a ~/.config/Pinta directory, if so try
deleting that.

When you start from the command line, is the error output the same
as your original post?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.46-0.3-default
up 17:51, 2 users, load average: 0.06, 0.42, 1.59
GPU GeForce 8600 GTS Silent - Driver Version: 290.10

I deleted that .config/Pinta directory and get:

~> pinta                                                                           
                                                                                                               
Unhandled Exception: System.ArgumentException: 'gtk-close' is not a valid resource name of assembly 'Pinta.Resources, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'.                                                 
  at Gdk.PixbufLoader.InitFromAssemblyResource (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0 
  at Gdk.PixbufLoader..ctor (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0 
  at Gdk.Pixbuf..ctor (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0 
  at Gdk.Pixbuf.LoadFromResource (System.String resource) [0x00000] in <filename unknown>:0 
  at Pinta.Resources.ResourceLoader.GetIcon (System.String name, Int32 size) [0x00000] in <filename unknown>:0 
  at Pinta.ResourceManager.GetIcon (System.String name, Int32 size) [0x00000] in <filename unknown>:0 
  at Pinta.ResourceManager.GetIcon (System.String name) [0x00000] in <filename unknown>:0 
  at Pinta.Gui.Widgets.OpenImagesListWidget..ctor () [0x00000] in <filename unknown>:0 
  at Pinta.OpenImagesPad.Initialize (MonoDevelop.Components.Docking.DockFrame workspace, Gtk.Menu padMenu) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreateDockAndPads (Gtk.HBox container) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreatePanels (Pinta.WindowShell shell) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreateWindow () [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow..ctor () [0x00000] in <filename unknown>:0 
  at Pinta.MainClass.Main (System.String] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: 'gtk-close' is not a valid resource name of assembly 'Pinta.Resources, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'.
  at Gdk.PixbufLoader.InitFromAssemblyResource (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0 
  at Gdk.PixbufLoader..ctor (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0 
  at Gdk.Pixbuf..ctor (System.Reflection.Assembly assembly, System.String resource) [0x00000] in <filename unknown>:0 
  at Gdk.Pixbuf.LoadFromResource (System.String resource) [0x00000] in <filename unknown>:0 
  at Pinta.Resources.ResourceLoader.GetIcon (System.String name, Int32 size) [0x00000] in <filename unknown>:0 
  at Pinta.ResourceManager.GetIcon (System.String name, Int32 size) [0x00000] in <filename unknown>:0 
  at Pinta.ResourceManager.GetIcon (System.String name) [0x00000] in <filename unknown>:0 
  at Pinta.Gui.Widgets.OpenImagesListWidget..ctor () [0x00000] in <filename unknown>:0 
  at Pinta.OpenImagesPad.Initialize (MonoDevelop.Components.Docking.DockFrame workspace, Gtk.Menu padMenu) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreateDockAndPads (Gtk.HBox container) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreatePanels (Pinta.WindowShell shell) [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow.CreateWindow () [0x00000] in <filename unknown>:0 
  at Pinta.MainWindow..ctor () [0x00000] in <filename unknown>:0 
  at Pinta.MainClass.Main (System.String] args) [0x00000] in <filename unknown>:0 

My Pinta folder is recreated at that point, and empty.

For some reason my error have simplified, I’m not sure what I have done, except normal repo updates.

~> pinta
GLib.GException: Icon 'gtk-dialog-error' not present in theme
  at Gtk.IconTheme.LoadIcon (System.String icon_name, Int32 size, IconLookupFlags flags) [0x00000] in <filename unknown>:0 
  at Pinta.ErrorDialog.Build () [0x00000] in <filename unknown>:0 
  at Pinta.ErrorDialog..ctor (Gtk.Window parent) [0x00000] in <filename unknown>:0 
  at Pinta.MainClass.ExceptionManager_UnhandledException (GLib.UnhandledExceptionArgs args) [0x00000] in <filename unknown>:0 
  at GLib.ExceptionManager.RaiseUnhandledException (System.Exception e, Boolean is_terminal) [0x00000] in <filename unknown>:0 

This seems to point to the issue with GTK icons. I’ll experiment with that.

Once there is a stable Pinta-1.1 rpm, I would love to see that contributed or linked to the Pinta: Painting Made Simple - Pinta website!

When I uninstall gnome-icon-theme-extras I get an extra error line:

Cairo.Context: called from finalization thread, programmer is missing a call to Dispose

I’m running OpenSUSE 12.1 + KDE 4.7.3

SUCCESS!!

I found this thread: https://groups.google.com/d/msg/pinta/E9f_0hs79oY/U_pCx4rqIPkJ

It seems the only issue was that I had a setting in “GTK Styles and Fonts” to “Oxygen-Molecule” I changed it to “Adwaita” and Pinta loaded with no issues!

“oxygen-gtk” actually looks a little better for me, so I’ve switched to that.

Hi
Good find, it worked fine in Gnome 3, so had to be a setting
somewhere :slight_smile:


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.9-desktop
up 18:37, 3 users, load average: 0.16, 0.09, 0.06
GPU GeForce 8600 GTS Silent - Driver Version: 290.10