So I'm trying to make use of a GtkSourceView in C++ using GtkSourceViewmm, whose documentation and level of support give me the impression that it hasn't been very carefully looked at in a long time. But I'm always an optimist :)
I'm trying to add a SourceView using some code similar to the following:
Glib::RefPtr<gtksourceview::Sourc...
Let's say I want to use a WebKitWebView in GTK to display some static HTML pages. These pages use a custom URL scheme, let's call it custom://. This scheme represents a local file whose location is not known beforehand, at the time the HTML is generated. What I do is connect to the navigation-requested signal of the webview, and do this:...
Possible Duplicate:
What should I choose: GTK+ or Qt?
What's easier to understand and more natural, faster to master, pleasant to use every day with different languages - the latest version of GTK or QT?
The question may be a bit subjective and hollyWar-ish, but interesting, significant and possible to answer objectively, I b...
I'm currently experimenting with using OCaml and GTK together (using the lablgtk bindings). However, the documentation isn't the best, and while I can work out how to use most of the features, I'm stuck with changing notebook pages (switching to a different tab).
I have found the function that I need to use, but I don't know how to use...
With a windows error dialog I can use CTRL-C to copy the window text.
I would like to allow users to do the same thing with the message dialogs I am using in my GTK app.
Is there a way to allow a GTK MessageDialog class to handle the copy command?
...
Hi. I want to save gtk.DrawingArea() object contents to jpeg file using PIL. Particularly I want add to this script possibility to make photo. I found how to save image to jpeg. All I need - get pixbuf object from gtk.DrawingArea() object. How can I do this?
...
I'm working on an app which involves the use of webkitgtk. It works fine except non-english characters. Example, webkitgtk widget does not render the following Russian text correctly.
Пишу в English, значит все в порядке.
Спасибо!
It rather display this,
Пишу в English, значит
вÑе в порÑдке.
СпаÑиÐ...
I've got a gtk - pixbuf out of an svg and want to crop this to a specific size at specific coordinates.
Anyone has an easy possible solution for that ?
...
Hi I want to load the groups of a svg-file into several gtk pixbuffs/subpixbufs
therefore I need the coordinates and width and height of them
I'm currently just using rsvg and gtk
is it possible to get those information with that modules ? Or do I need another module to read out that data from the svg-file?
thanks alot
...
I'm a fairly experienced programmer, but new to GUI programming. I'm trying to port a plotting library I wrote for DFL to gtkD, and I can't get drawings to show up. The following code produces a blank window for me. Can someone please tell me what's wrong with it, and/or post minimal example code for getting a few lines onto a Drawing...
Hi, I am currently using rsvg in Python to separate Svggroups.
I got it working so that rsvg loads a single group ... alas all the transparent space around that still remains.
Is there a gtk functionallity to cut away all this space?
Thanks for all the answers!
...
Hello,
In my gtk+ application i have list of images and i need to print it.
I have code for printing one image:
static void draw_page (GtkPrintOperation * oper, GtkPrintContext * context,
gint nr, gpointer user_data)
{
MainWin* mw = (MainWin*)user_data;
GdkPixbuf* pixbuf = gdk_pixbuf_new_from_file(...
I have written some GTK programs using the gtkD bindings for the D programming language that are otherwise console apps, but are capable of displaying plots on the screen and saving them to a file. I'd like to run these on a machine that I only have console-based SSH access to, which means that the plots wouldn't be displayed on the scr...
Is there a place where I can get a list of all fonts that are guaranteed to be present on any system with GTK? I need a way to set a sane default font for some plots, and of course the sane default font must be present.
Edit: If no specific fonts are guaranteed to be present, is there an easy way to just get some sane default scalable...
I'm a "classical" programmer, with "classical" RAD system. I would like to "migrate" to monodevelop to deploy some application, but the first big "mountains" is to learn the "packing" system for design object.
Why gtk (or mono) uses this system ?
Thanks
...
Hi Everyone,
With a lot of efforts,Finally I can identify my previous problems more clearly.
My environment is as following.
Eclipse version: 3.5.2
Java version: 1.6.0_20
OS: Ubuntu 8.04
I have a SO file.
And I have a JNI method which uses SO file.
If JNI method is called with specific parameters from Application wh...
I'm trying to get a Gtk::Spinner object to display while calculations are in progress but nothing appears to be happening. The snippet of code looks like...
{
Gtk::Spinner spinner;
spinner.start ();
// do some work...
spinner.stop ();
}
I'd have thought the spinner needed to know which dialogue it appears over but I c...
I'm working on a project where someone wrote a PyGTK GUI that uses docks from GDL. He has the GUI saved as an XML file:
<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="2.16"/>
<object class="GtkUIManager" id="uimanager"/>
<object class="GtkWindow" id="mainWindow">
<property name="title" translatable="yes">Title...
I am developing a GTK based application which has to support clipboard. For that I am exporting selection data using gtk_clipboard_set_with_data with the target formats: UTF8_STRING, STRING, TEXT, COMPOUND_TEXT, text/plain, text/plain;charset=utf-8, text/rtf, text/html and text/url. Using this I am able to copy-paste text from my aplicat...
I guess I'm not understanding something about C++:
I have this code:
#include "window.h"
int main(int argc, char* argv[]) {
Gtk::Main kit(argc, argv);
window win();
Gtk::Main::run(win);
return EXIT_SUCCESS;
}
'window' is a class that inherits from Gtk::Window with an empty constructor. When I try to compile this co...