gtk-sharp | cross platform Gtk+ GUI toolkit | Theme library
kandi X-RAY | gtk-sharp Summary
kandi X-RAY | gtk-sharp Summary
The Gtk# website can be found at: Gtk# is a .NET language binding for the GTK+ toolkit and assorted GNOME libraries. Gtk# is free software, licensed under the GNU LGPL.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gtk-sharp
gtk-sharp Key Features
gtk-sharp Examples and Code Snippets
Community Discussions
Trending Discussions on gtk-sharp
QUESTION
I installed the GtkSharp 3.22.24.36 package via Project > Add NuGet Packages..., which completed successfully. But now Monodevelop can't decide which version of GtkSharp to use (3.22.24.36 or the in-built one, 2.12).
If I uncheck gtk-sharp
in the Edit references... dialog, it tells me that I can't use the UI designer without it.
How do I get Monodevelop to use the downloaded GtkSharp (3.22)?
...ANSWER
Answered 2018-Dec-04 at 11:05MonoDevelop comes with a custom version of Gtk2 + Xwt bundled. If you plan to use Gtk3, then the designer must be deactivated, since it won't work with Gtk3.
My advice, anyway, no matter which toolkit you use, is to avoid using the designer. As soon as you involve the designer, you code heavily depends on the IDE you use (Visual Studio, MonoDevelop, NetBeans... you name it).
Creating user interfaces "by hand" is no longer traumatic as it was in the 90's with the Windows API. For example, you can find a very good Gtk# tutorial in ZetCode.
User Interface Toolkits are actually very similar, they change the name of widgets and sometimes provide a slightly different layout, but they are all mostly the same, no matter it is WinForms or Gtk(for C#), Swing (Java), or Qt (C++ and others).
QUESTION
I wrote my HelloWorld.cs using MonoDevelop, and Gtk# 2.0. It runs fine in the debugger, and it builds HelloWorld.exe. When I run from a terminal window "mono ./HelloWorld.exe" then the program runs as expected so I know it is coded as expected. However when I attempt to run it by double clicking on it from Files (Linux version of Windows Explorer) it opens Archive Manager with an error "An error occurred while loading the archive".
I am using Ubuntu 18.04.02 LTS, if that makes a difference.
I tried creating a link "ln -s ./HelloWorld.exe ./meow", and double clicked on meow, however that also opens Archive Manager with the same error.
I don't want my end product to require the user to open a Terminal window to run my program, what do I do so that the user can double click on my program from Files to run?
EDIT: [18FEB2019] Thanks Some programmer dude, I like the bundle idea as I may port this project to a different flavor of linux and I hope this gives me a path to get there. However, I got error:
...ANSWER
Answered 2019-Feb-22 at 12:15Files is detecting the .exe
extension as an archive, and therefore it opens it with File Roller or similar.
Just right-click the file HelloWorld.exe
and select "Open With Other Application", click on "Find New Applications", and then type "mono" and press ENTER. The app will open.
Another possibility is to create a .desktop
file, and place it under ~/.local/share/applications
, with this contents:
QUESTION
I installed Gnome Builder from Discover. I am not sure if this is the latest version or not, but the version is 3.30.1. I clicked new project and chose C# GTK application. Without changing anything, I pressed the build button, and build failed.
The message was,
Already on 'master'
The Meson build system
Version: 0.46.0 Source dir: /run/build/gtk-sharp3
Build dir: /run/build/gtk-sharp3/_flatpak_build
Build type: native build
meson_options.txt:2:0: ERROR: Unknown type feature.
A full log can be found at /run/build/gtk-sharp3/_flatpak_build/meson-logs/meson-log.txt Error: module gtk-sharp3: Child process exited with code 1
I had searched Google, and it seemed to be that the message was because Meson's version was below 47. But the problem is, I am not sure where this "0.46.0" is coming from. I have examined all files in the project, and none of the files had that version string. I installed Meson manually, and its version was 0.48.1. Still, I got the same message. I uninstalled Meson, and still I got the same message.
It seems almost as if Gnome Builder ignores system-wide settings, and has its own copy of Meson 0.46.0 somewhere. How to change it?
...ANSWER
Answered 2018-Nov-22 at 16:06Builder is probably building your application against a particular Flatpak runtime, which includes a particular version of Meson independent from what's installed in your host system. In the Build Settings panel you can select a different runtime or build against the host system.
QUESTION
I have a program (written by someone else) that I am trying to run.
...ANSWER
Answered 2018-Oct-16 at 11:16The problem was related to Anaconda package gtk3.
QUESTION
I'm working to get my application in a flatpak package. My application (https://sourceforge.net/p/audiocuesheet) is a mono build which uses gtk-sharp2. I'm really new to flatpak and started to build a manifest like this:
...ANSWER
Answered 2018-Sep-30 at 04:22You have the right idea:
- Just extract this build (which is available on sourceforge) and copy it to the correct places inside the system.
This is correct, but you are not copying them to the correct places. /home/sven/Dokumente
is not a valid location inside a Flatpak package, since each Flatpak has its own directory structure which does not include your home directory. Try a path beginning with /app
.
QUESTION
I have:
- mono-4.8.0.472
- Xamarin studio
- Mac OS Sierra 0.12.3
- gtk-sharp-2.12.42
I have install Xamarin studio from package. Than I have try to build x86_64 GTK# application, and i can't... I have read that for x86_64 applications i need to compile mono from source. I have delete mono by script and compile it from tarball. So Xamarin studio not working. When I start it I have error message : "This application requires Mono 4.3 or newer." I try to install mono on different folders: /opt/mono/mono-4.8.0. Then i have try to do this (in mono folder):
./autogen.sh --enable-nls=no --build=x86_64-apple-darwin --prefix=/Library/Frameworks/Mono.framework/Versions/Git --with-monotouch=yes && make && make install
I also have try to change prefix to "/Library/Frameworks/Mono.framework" and have the same result.
When I trying to change architecture of project setting I can't add x64 (Select arch screen). Sorry for Russian interface. I don't know how to switch to English.
I need to build x86_64 GTK# applications on Xamarin studio. How can I do this?
...ANSWER
Answered 2017-Feb-02 at 02:25You are only working with the solution wide configurations in the screen shot you showed. All this does is create configurations that each project in the solution can use. You still have to set the architecture in the project options, Project Options->Build->Compiler->Platform Target field:
If you want separate configurations for x86 and x64, then do the following:
- Open the Project Options->Build->Configurations page.
- Select the Debug|x86 configuration and Click "Copy" button.
- Select Debug for the Name field.
- Manually enter "x64" in the Platform field.
- Repeat steps 2, 3, and 4 using Release instead of Debug.
- Select the Build->Compiler page.
- Select Debug for Configuration and x64 for Platform in the drop downs at the top.
- In Platform Target field select "x64"
- Repeat step 7 and 8 for Release configuration.
- Open the Solution Options->Build->Configurations page (same as you showed in your screenshot)
- repeat steps 2,3, and 4 for Debug and Release configurations.
- Switch to the Configuration Mappings tab an select Configuration: Debug and Platform: x64 at the top.
- In the Solution Item list, in the configuration column for your project, select Debug|x64 in the drop down.
- Repeat steps 12 and 13 using Release instead of Debug.
Now when you select Debug|x64 or Release|x64 configurations, you will be building for x64.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gtk-sharp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page