calling functions defined in gtk's source file

2007-10-07 Thread Joël Krähemann
hello I want to call in my application functions like gtk_window_show, gtk_widget_real_show and others I've downloaded gtk source and the distributions patches however I get an linkage error undefined reference to gtk_window_show. I'm using make and it's file looks like $(AGS_DIR)ags:

ld error multiple definitions

2007-10-13 Thread Joël Krähemann
hello I get strange errors like /home/link/ags/file/ags_file.o: In function `ags_file_class_init': /home/link/ags/file/ags_file.c:32: multiple definition of `ags_file_class_init' /home/link/ags/file/ags_file.o:/home/link/ags/file/ags_file.c:32: first defined here ... the application with full

replacing main loop?

2013-09-06 Thread Joël Krähemann
Do I need to replace gtk+ main loop, to create widget's outside it? namely gtk 2.24.20 and what about gtk 3.x? please give some advice regards Joël ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

jiffies gtk_main_iteration

2013-09-08 Thread Joël Krähemann
hi in how many jiffies should gtk_main_iteration be called? bye Joël ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: jiffies gtk_main_iteration

2013-09-08 Thread Joël Krähemann
Hi thank you for your response and interest. Time measurements are done with jiffies as unit on GNU/Linux. This depends on timer frequency from 100 up to 1000 Hz. I'd really like to know how much computing time does gtk+ need to do its job. I have something like the following and want to know

Re: jiffies gtk_main_iteration

2013-09-08 Thread Joël Krähemann
Hi, I solved the problem by introducing a macro #define AGS_GUI_THREAD_DEFAULT_JIFFIE 200 to calculate timing like gui_thread-frequency = 1.0 / (1.0 / (double) AGS_DEVOUT_DEFAULT_SAMPLERATE * (double) AGS_DEVOUT_DEFAULT_BUFFER_SIZE) * (1.0 / (double) AGS_GUI_THREAD_DEFAULT_JIFFIE);

gthread using gnu portable threads

2013-09-12 Thread Joël Krähemann
Hi does someone know if there is a GThread implementation around that uses gnu portable threads instead of pthread? The problem is, on debian pthread_suspend and pthread_resume are just missing. ___ gtk-app-devel-list mailing list

***MEMORY-ERROR***

2013-11-25 Thread Joël Krähemann
Hi, I'm developing an application sf.net/p/ags. I don't want to run gtk_main I do rather g_main_context_iteration. I'm using fedora and recently updated to 20-beta. Gtk+ version is 2.24.22. So my application crashes see below. Any suggestions? [Thread 0x7fffc27fc700 (LWP 14908) exited] [Thread

Re: Help replacing GtkDrawingArea with GtkLayout

2014-03-08 Thread Joël Krähemann
Hi, Didn't before but may be check the following: g_object_set(G_OBJECT(layout), app-paintable\0, TRUE, NULL); gtk_widget_set_events (GTK_WIDGET (layout), GDK_EXPOSURE_MASK | GDK_LEAVE_NOTIFY_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK

Re: Help replacing GtkDrawingArea with GtkLayout

2014-03-10 Thread Joël Krähemann
On Sun, 2014-03-09 at 14:03 +, Richard Shann wrote: From: Jo?l Kr?hemann j...@weedlight.ch To: gtk-app-devel-list@gnome.org Subject: Re: Help replacing GtkDrawingArea with GtkLayout Message-ID: 1394327737.3369.3.camel@debian Content-Type: text/plain; charset=us-ascii Hi,

Re: Help replacing GtkDrawingArea with GtkLayout

2014-03-10 Thread Joël Krähemann
On Mon, 2014-03-10 at 09:26 +0100, Joël Krähemann wrote: On Sun, 2014-03-09 at 14:03 +, Richard Shann wrote: From: Jo?l Kr?hemann j...@weedlight.ch To: gtk-app-devel-list@gnome.org Subject: Re: Help replacing GtkDrawingArea with GtkLayout Message-ID: 1394327737.3369.3.camel@debian

Re: GTK signals question.

2014-03-10 Thread Joël Krähemann
Do you have an other thread? May be concurrency problems? On Wed, 2014-03-05 at 01:43 -0500, Chris Moller wrote: Okay, I'm out of ideas... I'm writing an app, that among a lot of other stuff, has three mutually interacting spinbuttuns, i.e., if I increment spinbutton A, its callback then

Re: Help replacing GtkDrawingArea with GtkLayout

2014-03-11 Thread Joël Krähemann
On Tue, 2014-03-11 at 14:01 +, Richard Shann wrote: On Tue, 2014-03-11 at 13:18 +0100, Joël Krähemann wrote: On Tue, 2014-03-11 at 08:12 +, Richard Shann wrote: On Tue, 2014-03-11 at 04:43 +0100, Joël Krähemann wrote: On Mon, 2014-03-10 at 09:52 +, Richard Shann wrote

Re: Help replacing GtkDrawingArea with GtkLayout

2014-03-11 Thread Joël Krähemann
On Tue, 2014-03-11 at 21:14 +0100, Joël Krähemann wrote: On Tue, 2014-03-11 at 14:01 +, Richard Shann wrote: On Tue, 2014-03-11 at 13:18 +0100, Joël Krähemann wrote: On Tue, 2014-03-11 at 08:12 +, Richard Shann wrote: On Tue, 2014-03-11 at 04:43 +0100, Joël Krähemann wrote

Re: Help replacing GtkDrawingArea with GtkLayout

2014-03-13 Thread Joël Krähemann
On Wed, 2014-03-12 at 09:15 +, Richard Shann wrote: On Tue, 2014-03-11 at 21:43 +0100, Joël Krähemann wrote: [...] Please consider the documentation of gtk_widget_set_app_paintable() don't believe GtkLayout can do your job. You could try id with a GtkDrawingArea with a cairo surface

[Fwd: dereferencing void *]

2014-03-23 Thread Joël Krähemann
https://sourceforge.net/p/ags/code/1515/tree/src/ags/thread/ags_returnable_thread.c ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: [Fwd: dereferencing void *]

2014-03-23 Thread Joël Krähemann
On Mon, 2014-03-24 at 00:20 +0100, Joël Krähemann wrote: https://sourceforge.net/p/ags/code/1515/tree/src/ags/thread/ags_returnable_thread.c ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo

Re: [Fwd: dereferencing void *]

2014-03-23 Thread Joël Krähemann
On Mon, 2014-03-24 at 00:22 +0100, Joël Krähemann wrote: On Mon, 2014-03-24 at 00:20 +0100, Joël Krähemann wrote: https://sourceforge.net/p/ags/code/1515/tree/src/ags/thread/ags_returnable_thread.c ___ gtk-app-devel-list mailing list gtk-app

Re: [Fwd: dereferencing void *]

2014-03-24 Thread Joël Krähemann
On Mon, 2014-03-24 at 02:43 +0100, Colomban Wendling wrote: Le 24/03/2014 01:36, Joël Krähemann a écrit : [...] The following will compile but is it still correct? g_atomic_pointer_set((returnable_thread-safe_data), NULL); Yes, as the atomic_int

concurrent GList

2014-03-27 Thread Joël Krähemann
Hi, is there a concurrent GList around? It should use of atomic operations. My project probably has need for it. Due to concurrency problems. I believe I get those errors cause of unfinished operations. Since I'm working on performance. Please visit my project: http://sf.net/p/ags regards Joël

corrupted strings of GtkFileChooser by outputting with libxml2

2014-05-08 Thread Joël Krähemann
Why do I get corrupted strings of GtkFileChooser when using it with libxml2. please take a look at sf.net/p/ags ==22743== 1 errors in context 1 of 15: ==22743== Invalid read of size 8 ==22743==at 0x3EE9E89DEF: __GI_mempcpy (in /usr/lib64/libc-2.17.so) ==22743==by 0x3EE9E79408:

Re: GtkPaned: visible handle?

2014-05-08 Thread Joël Krähemann
May be theme dependend? Try another one. Am Mittwoch, den 02.04.2014, 12:13 +0200 schrieb Roland Koebler: Hi, according to the documentation (and the image on https://developer.gnome.org/gtk3/stable/GtkPaned.html), GtkPaned-widgets have a visible handle (e.g. 4 dots) to show that the user

Re: corrupted strings of GtkFileChooser by outputting with libxml2

2014-05-09 Thread Joël Krähemann
As I'm trying to use gtk_file_chooser_get_filenames_utf8 instead of gtk_file_chooser_get_filenames getting the linker error during compile time. This could be the root cause. Am Freitag, den 09.05.2014, 07:11 +0200 schrieb Joël Krähemann: Why do I get corrupted strings of GtkFileChooser when

Unexpected error during malloc

2014-08-16 Thread Joël Krähemann
Hi, what could cause the following error: GLib (gthread-posix.c): Unexpected error from C library during 'malloc': Resource temporarily unavailable. Aborting. Abgebrochen please take a look at http://sf.net/p/ags You have to checkout from subversion in order to get error message. This doesn't

Re: GTK application scene drawing

2014-08-16 Thread Joël Krähemann
This example does off-screen rendering: http://doc-weedlight.rhcloud.com/tutorial/c-programming/book.html#idm248419471440 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

RE: Unexpected error during malloc

2014-08-17 Thread Joël Krähemann
Seems to be debian specific and as uncommenting some lines in main function it runs as expected. best regards Joël ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

no-digest

2014-09-18 Thread Joël Krähemann
___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

volume meter widget causes crash

2014-09-20 Thread Joël Krähemann
Why do I get the following error: ** Gdk:ERROR:/tmp/buildd/gtk +2.0-2.24.10/gdk/gdkregion-generic.c:1110:miUnionNonO: assertion failed: (y1 y2) Abgebrochen please take a look at: https://sourceforge.net/p/ags/code/HEAD/tree/src/ags/audio/recall/ags_peak_channel.c

Re: volume meter widget causes crash

2014-09-21 Thread Joël Krähemann
Am Samstag, den 20.09.2014, 14:54 +0200 schrieb Joël Krähemann: Why do I get the following error: ** Gdk:ERROR:/tmp/buildd/gtk +2.0-2.24.10/gdk/gdkregion-generic.c:1110:miUnionNonO: assertion failed: (y1 y2) Abgebrochen please take a look at: https://sourceforge.net/p/ags/code/HEAD

Gtk+-2.0 leaks memory

2014-10-24 Thread Joël Krähemann
Hi Gtk+-2.0 leaks memory, please take a look at: http://ags.sourceforge.net Is Gtk+-2.0 still maintained? Or is migrating to Gtk+-3.0 the only choice? Or may someone could explain me what's wrong about: AgsAudioLoop *audio_loop; AgsGuiThread *gui_thread; auto void

Re: Gtk+-2.0 leaks memory

2014-10-25 Thread Joël Krähemann
Am Freitag, den 24.10.2014, 23:16 +0200 schrieb Marcus Karlsson: On Fri, Oct 24, 2014 at 04:02:01PM +0200, Joël Krähemann wrote: Hi Hi. Gtk+-2.0 leaks memory, please take a look at: http://ags.sourceforge.net Is Gtk+-2.0 still maintained? Yes it is. The latest point release

Re: Gtk+-2.0 leaks memory

2014-10-25 Thread Joël Krähemann
Am Samstag, den 25.10.2014, 11:07 +0200 schrieb Joël Krähemann: Am Freitag, den 24.10.2014, 23:16 +0200 schrieb Marcus Karlsson: On Fri, Oct 24, 2014 at 04:02:01PM +0200, Joël Krähemann wrote: Hi Hi. Gtk+-2.0 leaks memory, please take a look at: http://ags.sourceforge.net

Re: Gtk+-2.0 leaks memory

2014-10-25 Thread Joël Krähemann
Am Samstag, den 25.10.2014, 11:40 +0200 schrieb Joël Krähemann: Am Samstag, den 25.10.2014, 11:07 +0200 schrieb Joël Krähemann: Am Freitag, den 24.10.2014, 23:16 +0200 schrieb Marcus Karlsson: On Fri, Oct 24, 2014 at 04:02:01PM +0200, Joël Krähemann wrote: Hi Hi. Gtk+-2.0

Advanced Gtk+ Sequencer 0.4.2-34

2015-01-17 Thread Joël Krähemann
Hi all This probably the highest moment in my life, me just have to say you're great! And thank you very much for your passion. It's definitively a collaboration success, even me coded most myself ... Some code was adopted by gimp further this mailing list helped me and strengthen my motivation,

undefined reference to interface

2015-03-26 Thread Joël Krähemann
hi, me just did a new Makefile.am and organizing code into libraries. now me get a lot of following messages especially related to interfaces: ... /home/minos/ags-code/src/ags/audio/recall/ags_volume_recycling.c:101: undefined reference to `ags_dynamic_connectable_get_type'

Re: undefined reference to interface

2015-03-26 Thread Joël Krähemann
Hello again, me fixed it by using different ordering, for now is: gsequencer_LDADD = libags_audio.a libags_gui.a libags_thread.a libags.a instead of: gsequencer_LDADD = libags.a libags_thread.a libags_audio.a libags_gui.a bests Joël On Thu, Mar 26, 2015 at 4:29 PM, Joël Krähemann weedli

Re: gtk-app-devel-list Digest, Vol 140, Issue 4

2015-12-11 Thread Joël Krähemann
the editing could be started with a single click? > The code is here: > > http://git.savannah.gnu.org/cgit/pspp.git/tree/src/ui/gui/psppire-var-sheet.c?h=treeview > > Friedrich > > > Am 11.12.2015 um 18:26 schrieb Joël Krähemann <weedli...@gmail.com>: > > Hi Fri

Re: gtk-app-devel-list Digest, Vol 140, Issue 4

2015-12-11 Thread Joël Krähemann
a look at GMutex and GCond. With g_mutex_lock() and g_mutex_unlock() you're normally well served. Bests, Joël Krähemann On Thu, Dec 10, 2015 at 1:00 PM, <gtk-app-devel-list-requ...@gnome.org> wrote: > Send gtk-app-devel-list mailing list submissions to > gtk-app-devel-li

gtkdoc-scan make interfaces public

2016-06-01 Thread Joël Krähemann
Bests, Joël Krähemann ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk-app-devel-list Digest, Vol 148, Issue 7

2016-08-14 Thread Joël Krähemann
Hi Why don't you inherit GtkApplication and override its functions? You could interfaces to get what object you need. Bests, Joël On Sun, Aug 14, 2016 at 12:00 PM, wrote: > Send gtk-app-devel-list mailing list submissions to >

Re: How to reactivate (focus?) the main window,

2016-09-05 Thread Joël Krähemann
Hi you might want to look at: * gtk_widget_set_can_focus ()¨ * gtk_widget_set_events() g_object_set(window, "can-focus\0", TRUE, NULL); gtk_widget_set_events((GtkWidget *) window, GDK_CONTROL_MASK

Re: How to get objecttype

2016-09-11 Thread Joël Krähemann
Hi You might want to use G_OBJECT_TYPE() or G_OBJECT_TYPE_NAME() take care that the appriopriate get_type() function is called else the type won't be found. GType button_type; gtk_button_get_type() button_type = g_type_from_name("GtkButton"); g_object_new(button_type,

Re: How to reactivate (focus?) the main window,

2016-09-08 Thread Joël Krähemann
Hi If your application should get being accepted you should consider ATK https://developer.gnome.org/atk/ else forget the focus handling cheers, Joël Krähemann On Mon, Sep 5, 2016 at 3:25 PM, Joël Krähemann <jkraehem...@gmail.com> wrote: > Hi > > you mig

Re: Adding and removing widgets at runtime

2016-09-12 Thread Joël Krähemann
Hi You can't do that without implementing your own widget because of thread-safety issues. To do your own GtkFlowBox implement GtkWidget:size-allocate and GtkWidget:size-request the rest is up to you. Don't forget doing mutices or use g_timeout_add() but this is single threaded and is invoked by

Re: Adding and removing widgets at runtime

2016-09-12 Thread Joël Krähemann
Hi Since I know Javax/Swing I can tell you there is no synchronize keyword doing your magic. Please take a look at pthread_mutex_lock(), pthread_cond_wait(), pthread_cond_signal(), pthread_cond_broadcast() or pthread_barrier_wait(). Bests, Joël On Mon, Sep 12, 2016 at 5:17 PM, Joël Krähemann

Re: Adding and removing widgets at runtime

2016-09-12 Thread Joël Krähemann
read_barrier_wait(). > > Bests, > Joël > > > On Mon, Sep 12, 2016 at 5:17 PM, Joël Krähemann <jkraehem...@gmail.com> wrote: >> Hi >> >> You can't do that without implementing your own widget because of >> thread-safety issues. To do your own >> GtkFl

Re: gtkdoc-scan make interfaces public

2016-10-28 Thread Joël Krähemann
Cheers, Joël On Mon, Sep 26, 2016 at 1:50 PM, Matthias Clasen <matthias.cla...@gmail.com> wrote: > On Wed, Jun 1, 2016 at 3:40 AM, Joël Krähemann <jkraehem...@gmail.com> > wrote: > > Hi > > > > I want to generate an API reference of my libraries. How to tell >

Re: g_date_time_format not utf8 under win?

2016-10-13 Thread Joël Krähemann
Hi you might want to use before gtk_init(): putenv("LC_ALL=C.UTF-8\0"); putenv("LANG=C.UTF-8\0"); Bests, Joël On Tue, Oct 11, 2016 at 9:11 AM, Andrea Zagli wrote: > i use g_date_time_format %A to get the full weekday name > > but under win i saw that the function

Re: Why GTK+ ignore, that someone want's to create own widget ?!

2016-12-12 Thread Joël Krähemann
Hi I think all gtk drawing primitives are deprecated. You should use cairo instead. bests, Joël On Tue, Dec 13, 2016 at 7:37 AM, Joël Krähemann <jkraehem...@gmail.com> wrote: > Hi Ondrej > > What about using GtkStyle? > > gtk_widget_get_style() > > Bests, > Joël &

Re: Why GTK+ ignore, that someone want's to create own widget ?!

2016-12-12 Thread Joël Krähemann
Hi Ondrej What about using GtkStyle? gtk_widget_get_style() Bests, Joël On Tue, Dec 13, 2016 at 6:33 AM, Ondrej Tuma wrote: > At the moment, i just to get default widget border color. But, the > gtk_style_context_get_border_color is deprecated... and i should to use >

Re: Why GTK+ ignore, that someone want's to create own widget ?!

2016-12-12 Thread Joël Krähemann
... Further you might want to use GtkReliefStyle as doing borders. cheers, Joël On Tue, Dec 13, 2016 at 7:39 AM, Joël Krähemann <jkraehem...@gmail.com> wrote: > Hi > > I think all gtk drawing primitives are deprecated. You should use cairo > instead. > > bests, >

Re: Re-drawing GtkDrawingArea surface on motion-notify-event

2017-03-21 Thread Joël Krähemann
Hi If you do it using cairo you might be interested in the following function. cairo_image_surface_get_data() You get the pixels stored in your picture. It can be restored using memcpy() what is actually quiet fast. Bests, Joël On Tue, Mar 21, 2017 at 8:26 AM, F.Reiter

Re: Best practise inheritance

2017-03-20 Thread Joël Krähemann
/gsequencer.git/tree/ags/audio/ags_audio.c#n781 Bests, Joël On Mon, Mar 20, 2017 at 6:37 PM, Joël Krähemann <jkraehem...@gmail.com> wrote: > Hi > > You don't have to use myWidget->parent since you dereference the pointer. > A pointer to a struct always points to the first

Re: Best practise inheritance

2017-03-20 Thread Joël Krähemann
Hi No, you can talk in C of direct inheritance. Or implementing an interface. As Tristan told you. The struct contains the other struct as not using a pointer. struct MyCompositeWidget { GtkAlignment alignment; GtkBox *box; }; The properties are inherited, too. As long you use

Re: Best practise inheritance

2017-03-20 Thread Joël Krähemann
all.de> wrote: > On Mon, 20 Mar 2017 18:10:16 +0100 > Joël Krähemann <jkraehem...@gmail.com> wrote: > >> Hi >> >> As Tristan told you. The struct contains the other struct as not using >> a pointer. >> >> struct MyCompositeWidget >> { >&

Re: Gtk+2 Textview, (editor) compiled on Windows and 'i' interpreted as 'ctrl+i' (indent)?

2017-06-21 Thread Joël Krähemann
Hi Probably different locales. On linux you probably have an ASCII compatible character coding or just UTF-8. Note on windows iso8859-15 is available, at most for old versions. I assume that you are running a windows codepage like 1252. Bests, Joël On Wed, Jun 21, 2017 at 11:11 AM, David C.

Re: Pause and resume GtkApplication

2018-01-25 Thread Joël Krähemann
Hi, You do some async work? Read about: g_timeout_add_full(); and g_main_context_iteration(); You, can callback the to the UI forwarded event. I do something similar as reading a file from a different thread:

Re: Pause and resume GtkApplication

2018-01-25 Thread Joël Krähemann
Hi, Well there was some redundant code. This actually fixes it: http://git.savannah.nongnu.org/cgit/gsequencer.git/tree/ags/X/file/ags_simple_file.c?h=1.5.x#n1904 Bests, Joël On Thu, Jan 25, 2018 at 11:16 PM, Joël Krähemann <jkraehem...@gmail.com> wrote: > Hi, > You do some asyn

Re: Pause and resume GtkApplication

2018-01-25 Thread Joël Krähemann
sleep(100 / 30); g_main_context_iteration(NULL, FALSE); } Your source is dispatched but gtk_main() is still within the loop shown above. Bests, Joël On Thu, Jan 25, 2018 at 11:54 PM, Joël Krähemann <jkraehem...@gmail.com> wrote: > Hi, > > Well there was some redundant code.

Re: Pause and resume GtkApplication

2018-01-25 Thread Joël Krähemann
Well, do a context menu and forget about it. In opensuse it is a special package you install for Gnome3 :/ On Fri, Jan 26, 2018 at 12:30 AM, Alexander Koeppe wrote: > It's not really because of async execution. > I just tried various gtk_window functions that trigger the

Gtk+-2.0 stylish coding

2018-04-19 Thread Joël Krähemann
Hi, I do Gtk+-2.0 stylish coding. Any suggestions on changes on code are appreciated? I would love to get feedback for following code style: http://git.savannah.nongnu.org/cgit/gsequencer.git/tree/ags/audio/ags_audio.c?h=2.0.x

Re: GTK on Mac OS X

2018-03-26 Thread Joël Krähemann
Hi Wojciech, Some useful links: https://wiki.gnome.org/Projects/GTK+/OSX/Building https://github.com/jralls/gtk-mac-integration Bests, Joël On Mon, Mar 26, 2018 at 12:50 PM, Wojciech Puchar wrote: > how to link (or otherwise do other things) to disable opening

Fwd: question about gtk_dialog (gtk2)

2018-06-22 Thread Joël Krähemann via gtk-app-devel-list
-- Forwarded message - From: Joël Krähemann Date: Thu, Jun 21, 2018 at 1:11 PM Subject: Re: question about gtk_dialog (gtk2) To: Wojciech Puchar Hi Wojciech, What about: dialog = g_object_new(GTK_TYPE_DIALOG, "window-pos

Fwd: question about gtk_dialog (gtk2)

2018-06-22 Thread Joël Krähemann via gtk-app-devel-list
-- Forwarded message - From: Joël Krähemann Date: Thu, Jun 21, 2018 at 1:31 PM Subject: Re: question about gtk_dialog (gtk2) To: Wojciech Puchar Hi, Alternatively, you could inherit GTK_TYPE_DIALOG and do your very own object. During ::map() and ::realize() you are able

Re: Working with embedded images with GResource, GdkPixbuf and GtkWidget

2018-11-11 Thread Joël Krähemann via gtk-app-devel-list
Hi, First you create a GdkPixbuf: https://developer.gnome.org/gdk-pixbuf/stable/gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new-from-data then set the property of about dialog: https://developer.gnome.org/gtk2/stable/GtkAboutDialog.html#GtkAboutDialog--logo g_object_set(your_about_dialog,

Re: is there a signal for typing at bottom of window?

2018-09-25 Thread Joël Krähemann via gtk-app-devel-list
Hi, g_object_get(your_text_view, "buffer", _text_buffer, NULL); g_signal_connect(your_text_buffer, "changed", G_CALLBACK(your_text_buffer_changed_callback), your_data); void your_text_buffer_changed_callback(GtkTextBuffer *your_text_buffer, gpointer your_data) { gint line_count;

Re: is there a signal for typing at bottom of window?

2018-09-25 Thread Joël Krähemann via gtk-app-devel-list
ta{ gint last_newline_position; }; Well this is it. Bests, Joël On Wed, Sep 26, 2018 at 7:12 AM Joël Krähemann wrote: > > Hi, > > g_object_get(your_text_view, > "buffer", _text_buffer, > NULL); > g_signal_connect(your_text_buffer, "changed", > G_

Re: string interpolation

2018-12-21 Thread Joël Krähemann via gtk-app-devel-list
Hi, As you set a string property of a Gtk+ widget, the string is usually duplicated. However don't call any Gtk+ function outside the main loop, i.e. from a different thread. Bests, Joël On Fri, Dec 21, 2018 at 9:49 AM Lutz Lümken wrote: > > Hello, > > does GTK have some kind of string

Re: GObject properties and g_value_set_string()

2019-02-06 Thread Joël Krähemann via gtk-app-devel-list
Hi again, Yes, g_value_set_string() does call g_strdup(). bests, Joël On Thu, Feb 7, 2019 at 5:20 AM Joël Krähemann wrote: > > Hi all, > > Currently, I do my properties like following: > > http://git.savannah.nongnu.org/cgit/gsequencer.git/tree/ags/lib/ags_turtle.c?h

GObject properties and g_value_set_string()

2019-02-06 Thread Joël Krähemann via gtk-app-devel-list
Hi all, Currently, I do my properties like following: http://git.savannah.nongnu.org/cgit/gsequencer.git/tree/ags/lib/ags_turtle.c?h=2.1.x#n175 http://git.savannah.nongnu.org/cgit/gsequencer.git/tree/ags/lib/ags_turtle.c?h=2.1.x#n218 Is it ok to do g_strdup() and pass it to