gtk+ multithreading image loading
Hello, Where can i find example of gtk+ multithreading image loading? Thank you ...
Hello, Where can i find example of gtk+ multithreading image loading? Thank you ...
I have a dialog which contains a pygtk.treeview for listing tasks by priority. Each row has the background colour set based on that priority, so for example the highest priority has a light red background. The row selection color is not so easy to change. I can set it using treeview.modify_base(gtk.STATE_SELECTED, "#C4C4C4"), but no col...
Is anywhere book or good manual, but better book about GTK+/glib, and multithreading in C/GTK+? I need to run a function in another thread than main window, and make it cancellable. ...
In my C GTK+ application I must load and display images using a GtkAnimView widget. I have a loading function: void loading(GtkWidget *widget, const char* file_path, MainWin* mw) { GError* error; gssize n_read; gboolean res; guchar buffer[LOAD_BUFFER_SIZE]; GInputStream* input_stream; GFile *file = g_fil...
How can I impose GdkDrawingArea on the GtkImage for painting on an image, for example? ...
I have configured CodeBlocks with lib , src, bin , include paths for GTK+ , and I have choosen the GTK+ project I am trying to run the program in http://pastebin.org/366972 But during build I am getting errors - please see http://pastebin.org/366980 . Am I missing something. ...
Hello, I need to create GdkPixBuf collection. I try to save pixbufs in GList - mw->disp_list: GtkTreeIter iter; int i = 0; for (i; i < g_list_length(list) - 1; ++i) { char* file = image_list_get_current_file_path( list ); mw->p1 = gdk_pixbuf_new_from_file(file,NULL); mw->p1 = scale_pix(mw->p1,128); mw...
Using GTK+'s GtkFileChooserDialog, how can I allow the user to select a file or a folder (both are valid here). The actions available are mutually exclusive. ...
Hello, The goal is to run in a separate thread function downloads data from the main form. To do this, use GIOScheduler. I have function for loading data: void load(GInputStream* input_stream, GCancellable* cancellable) { ... } The function load works 100%. Then there is the function you want to send in a separate thread: v...
Hello, I need to run function in another thread then main form: I have a job_func: void job_func(GIOSchedulerJob *job, GCancellable *cancellable, gpointer user_data) { MainWin* mw = (MainWin*)user_data; while( g_cancellable_is_cancelled(mw->generator_cancellable) == FALSE) { loading (NULL, mw); } } Then load...
Hello, I have functiof of load data: GdkPixbufAnimation* load_image_from_stream(GInputStream* input_stream, GCancellable* generator_cancellable) { .... } It's load very nice. Then I have function where i call load_image_from_stream: void loading(GtkWidget* widget ,MainWin* mw) { GInputStream* input_stream; input_strea...
Hello, I have a function for loading GdkPixbufAnimation from stream. GdkPixbufAnimation* load_image_from_stream(GInputStream* input_stream, GCancellable* generator_cancellable) { GError** error; gboolean res; gssize n_read; guchar buffer[65535]; GdkPixbufAnimation* animation; GdkPixbufLoader* loader; loader = gdk_pixbu...
Programming with GTK+ is annoying and physically painful because of the sheer amount of reaching out for the "_" key. For anyone with actual GTK+ experience, have you found a work around for this?. The platform is linux based. ...
Hello, I need to get exif data in my C/gtk+ application. I use jhead for it. How can i get exif data with jehad. I try so: const char* file_name = ImageInfo.FileName; But file_name = NULL; Is anywhere samples in C/C++ how can i get exif data with jhead? Thank you. ...
Hello, I have 2 froms, primary and secondary in my gtk+ application. In second from i have GtkButton - close. How can i close this form when button clicked. Not hide, i need close form. Thank you ...
Hello, Now i'm try to learn multithreading and mutext. But i don't understand it. For example i add items to list in anotyher thread then main programm: GMutext* lock; g_mutex_lock (lock); g_list_prepend(list, "Some data"); g_mutex_unlock (lock); What happens in this case with the list? The list of added elements, as well as no acces...
Hi Everyone? I have one libA.so. It is used by JNI method. And I have two different version of Ubuntu. One is Ubuntu 8.04 and the other is Ubuntu 9.10. libA.so has a dependency. libA.so depends on libB.so and libB.so depends on libC.so. ie. libA.so -> libB.so -> libC.so (Actually libB.so and libC.so are related with GTK) The li...
Hello, In my C/gtk+ application I have list of images. Where can find simple example for printing those images? Thank you ...
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(...
Hello, In my gtk+ application i need to split image with high resolution. How can i make it with cairo? Where can i find example? Thank you ...