SOLVED [was Re: Howto set horiz space/padding between vbox and statusbar?]

2015-12-08 Thread David C. Rankin
On 12/07/2015 11:13 PM, David C. Rankin wrote: All, I have been pulling my hair out trying to tweak the padding between a GtkVBox and a GtkStatusbar. I have the following main window layout: main window vbox = gtk_vbox_new (FALSE, 0); menubar scrolled-window

Howto set horiz space/padding between vbox and statusbar?

2015-12-07 Thread David C. Rankin
the first went to the 'requests' list by mistake. -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

"mark_set" callback fires 3 or 4 times when using arrow keys/mouse in textview?

2015-12-22 Thread David C. Rankin
ck: line: 1 col: 1 line: 1 col: 1 line: 1 col: 1 line: 1 col: 1 How can I limit the the execution of the 'on_mark_set' callback to a single call regardless of whether there is data being entered or if cursor is being moved with the arrow-keys or mouse? Any help will be great

SOLVED - sortof [was Re: "mark_set" callback fires 3 or 4 times when using arrow keys/mouse in textview?}

2015-12-28 Thread David C. Rankin
On 12/22/2015 05:13 PM, David C. Rankin wrote: How can I limit the the execution of the 'on_mark_set' callback to a single call regardless of whether there is data being entered or if cursor is being moved with the arrow-keys or mouse? Any help will be greatly appreciated. OK, I have

gtk_text_view_im_context_filter_keypress - howto replace Tab with 4-spaces?

2015-12-21 Thread David C. Rankin
: "Note that you are expected to call this function from your handler when overriding key event handling." That's what I'm trying to do, but when I call the function, it always returns FALSE -- so what's the point? What say the experts? Is gtk_text_view_im_context_filter_keypr

Re: gtk_text_view_im_context_filter_keypress - howto replace Tab with 4-spaces?

2015-12-21 Thread David C. Rankin
On 12/21/2015 02:57 AM, Liam R. E. Quin wrote: On Mon, 2015-12-21 at 02:22 -0600, David C. Rankin wrote: [...] if (gtk_text_view_im_context_filter_keypress (GTK_TEXT_VIEW (app->view), ev

Re: Does gtk2 provide a case 'in'-sensitive text search via 'gtk_text_iter_..._search'?

2017-02-21 Thread David C. Rankin
search_nocase (, text, 0, , ); #endif } } Hope this can help someone else. -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

textview widget selection buffer_select_range is cleared when dialog closes (intermittently?)

2017-02-21 Thread David C. Rankin
mmediately on close of the dialog if 'Yes' is chosen) can be removed from the matched word as focus from the dialog is returned to the textview. Is there some standard way to prevent the closing of a dialog from impacting an active selection in the parent window? (with Gtk+ 2.24) -- David C. Rankin

Re: textview widget selection buffer_select_range is cleared when dialog closes (intermittently?)

2017-02-21 Thread David C. Rankin
On 02/22/2017 12:34 AM, David C. Rankin wrote: > All, > > I have a textview widget being used in an editor where an incremental search > is performed. The matched words are highlighted with: > > gtk_text_buffer_select_range (buffer, , ); > > After the last match in

Re: Does gtk2 provide a case 'in'-sensitive text search via 'gtk_text_iter_..._search'?

2017-02-17 Thread David C. Rankin
wealth of good themes available). For most of the added GtkSourceView 3X functionality that I want, have simply backported the functions to run with Gtk+2 (e.g. source_view_indent_lines, source_view_unindent_lines, ...) -- David C. Rankin, J.D.,P.E. ___

Re: Does gtk2 provide a case 'in'-sensitive text search via 'gtk_text_iter_..._search'?

2017-02-18 Thread David C. Rankin
break; } if (lctext) g_free (lctext); } } -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: textview widget selection buffer_select_range is cleared when dialog closes (intermittently?)

2017-02-22 Thread David C. Rankin
s undoing the selection? I'll keep looking. -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Does gtk2 provide a case 'in'-sensitive text search via 'gtk_text_iter_..._search'?

2017-03-01 Thread David C. Rankin
=-DWGTKSOURCEVIEW2 You can clone a copy: git clone https://github.com/drankinatty/gtkwrite.git I've added to the README. Just let me know if you find anything else, or drop a bug on github. -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list

Howto attach a popup menu to a menubar (gtk2)

2017-03-01 Thread David C. Rankin
rt-click on a blank part of the menubar? -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Howto attach a popup menu to a menubar (gtk2)

2017-03-01 Thread David C. Rankin
On 03/01/2017 08:17 PM, David C. Rankin wrote: > All, > > I have a menubar (working fine) and I want to attach a popup menu to that > widget to "show/hide" a toolbar below it. I cannot figure out how to attach > the popup to the 'menubar' itself generically.

Howto integrate an inotify watch on editor file in GTK+2 event loop?

2017-03-28 Thread David C. Rankin
idle_add()`, if that makes any difference) What say the experts? footnote 1: https://github.com/drankinatty/gtkwrite -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

GFileMonitor - g_signal_handler_block "changed" signal doesn't block handler?

2017-03-30 Thread David C. Rankin
GFileMonitor that I'm missing. For normal signals in the app, I have no problems with block/unblock. Footnote [1]: (see earlier post "Howto integrate an inotify watch on editor file in GTK+2 event loop?") -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Howto integrate an inotify watch on editor file in GTK+2 event loop?

2017-03-28 Thread David C. Rankin
On 03/28/2017 01:34 PM, David C. Rankin wrote: > On 03/28/2017 02:06 AM, Emmanuele Bassi wrote: >> Use GFileMonitor from GIO instead of directly dealing with inotify. >> >> Ciao, >> Emmanuele. >> > > Now that is the type of answer I was looking for! Th

Re: Howto integrate an inotify watch on editor file in GTK+2 event loop?

2017-03-28 Thread David C. Rankin
On 03/28/2017 10:38 PM, David C. Rankin wrote: > Emmanuele, > > I need more help. I have implemented the watch with 'g_file_monitor_file' > and registered a callback on the "changed" signal for the file, but I cannot > get it to respond to any changes in th

Re: Howto integrate an inotify watch on editor file in GTK+2 event loop?

2017-03-28 Thread David C. Rankin
On 03/28/2017 02:06 AM, Emmanuele Bassi wrote: > Use GFileMonitor from GIO instead of directly dealing with inotify. > > Ciao, > Emmanuele. > Now that is the type of answer I was looking for! Thanks Emmanuele. That definitely keeps it much cleaner. -- David C. R

Re: GFileMonitor - g_signal_handler_block "changed" signal doesn't block handler?

2017-04-01 Thread David C. Rankin
ld provide a much more elegant solution. Worse case, I can always resort to the original 'inotify' implementation as the custom signal works fine with block/unblock. I'll just have to play with invoking the read from pselect with a g_idle_add of the callback that does that. I haven

Re: GFileMonitor - g_signal_handler_block "changed" signal doesn't block handler?

2017-03-31 Thread David C. Rankin
On 03/30/2017 03:39 PM, David C. Rankin wrote: > Let me know what the experts think. There is something funny about the way > block/unblock works with GFileMonitor that I'm missing. For normal signals in > the app, I have no problems with block/unblock. I've posted this complete

Re: Split TextView

2017-03-11 Thread David C. Rankin
ing between the views to control the split-view you are trying to create. -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Gtk+2 Clipboard - handling EOL better on paste or copy/cut?

2017-08-01 Thread David C. Rankin
On 07/31/2017 02:05 AM, David C. Rankin wrote: > Does this approach sound reasonable, or like one I'll spend 1/2 day coming > to regret? It was... something to regret (but was solved without regret...) I decided to write the conversion routine first -- it answered the question. You

Bug in Gtk+2 gtk_text_buffer_insert() of a '\n' following an existing '\r'?

2017-08-01 Thread David C. Rankin
sing '\r' in the buffer. Maybe gtk_text_iter_forward_to_line_end () correctly moves to the end and gtk_text_iter_forward_char (); correctly moves to the next position follwing '\r', but gtk_text_buffer_insert (buffer, , "\n", -1); fails to insert a '\n' following the exising '\r' and

Gtk+2 Clipboard - handling EOL better on paste or copy/cut?

2017-07-31 Thread David C. Rankin
, or like one I'll spend 1/2 day coming to regret? -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

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

2017-06-21 Thread David C. Rankin
10.0.zip https://download.gnome.org/binaries/win32/gtksourceview/2.10/gtksourceview-dev-2.10.0.zip http://xmlsoft.org/sources/win32/libxml2-2.7.8.win32.zip compiled with MinGW gcc and the above. Any ideas? Let me know if I can send any additional

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

2017-06-21 Thread David C. Rankin
On 06/21/2017 04:11 AM, David C. Rankin wrote: Well, I have identified the problem, and have a work-around, even if I haven't solved it. Here is the code I originally posted which provides 'ctrl+i' for indent and 'shift+ctrl+i' for unindent: > ... > gtk_widget_add_accelerator (in

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

2017-06-22 Thread David C. Rankin
On 06/21/2017 05:52 AM, David C. Rankin wrote: > Now all I have to do is figure out how to fix > gtk_source_language_manager_set_search_path () on windows so it can find my > sourceview language files in > "C:\opt\gtk2\share\gtksourceview-2.0\language-specs" Th

Re: GtkInfoBar - How do you set "button-spacing" style property.

2017-08-29 Thread David C. Rankin
On 08/29/2017 11:48 PM, David C. Rankin wrote: > How do you package this snippet of any rcfile and have it read by your > application -- in addition to the default theme in use? (Gtk+2)? > Got it -- gtk_rc_parse (filename); -- David C. Rankin,

Re: GtkInfoBar - How do you set "button-spacing" style property.

2017-08-29 Thread David C. Rankin
On 08/27/2017 04:53 AM, David C. Rankin wrote: > > The problem is the 6px spacing is way to big and the info bar takes up too > much space. I want to set the "button-spacing" style property to 2 (or 1) to > cut down the vertical height. > > How do I set the &qu

GtkInfoBar - How do you set "button-spacing" style property.

2017-08-27 Thread David C. Rankin
ch space. I want to set the "button-spacing" style property to 2 (or 1) to cut down the vertical height. How do I set the "button-spacing" style property? (it's these little, seemingly simple things, that are the most frustrating) -- David C. Rankin, J.D.,P.E. ___

Can you specify the No. of chars before SourceView Completion window is displayed?

2018-07-28 Thread David C. Rankin
and blocking the display of the completion window until the desired number of characters have been typed? -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Copywrite protection and source-code distribution

2018-08-03 Thread David C. Rankin
s, and your competitors in the market, that may just provide a bullseye they were looking for. -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Can you specify the No. of chars before SourceView Completion window is displayed?

2018-07-28 Thread David C. Rankin
On 07/28/2018 08:12 AM, John Coppens wrote: > David, is 'set_minimum_key_length' what you are looking for? Oh, no, no, no, not entry-completion, *word-completion* in a text editor window. (which explains why it was no where to be found in the gtkSourceView code :) -- David C. Rankin, J.D.,

Re: Can you specify the No. of chars before SourceView Completion window is displayed?

2018-07-28 Thread David C. Rankin
On 07/28/2018 08:12 AM, John Coppens wrote: > On Sat, 28 Jul 2018 03:35:02 -0500 > "David C. Rankin" wrote: > >> All, >> >> I have implemented word completion with GtkSourceView, but I cannot >> find a simple way to prevent the provider and pr

Re: How to scroll to a specific line

2018-07-28 Thread David C. Rankin
fer); (code for gtk_text_view_scroll_to_mark gtk_text_buffer_end_user_action (buffer); You shouldn't notice any delay when implementing the scroll in any reasonable size file. -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Can you specify the No. of chars before SourceView Completion window is displayed?

2018-07-30 Thread David C. Rankin
On 07/28/2018 03:35 AM, David C. Rankin wrote: > All, > > I have implemented word completion with GtkSourceView, but I cannot find a > simple way to prevent the provider and proposals from popping up until 3 (or > more) characters are typed? Is there an easier way to adjust t

Re: Appending to treestore - how to set selection on new entry?

2018-08-28 Thread David C. Rankin
ough the treemodel and match with the buffer held in the model using the iterator to set the selection. -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Appending to treestore - how to set selection on new entry?

2018-08-27 Thread David C. Rankin
then set the selection on that row/entry in the treeview. I guess I could do a for_each and loop over the pointers, but I'm unsure if that is the correct way or one of my logical hacks that would be better implemented some other way. Any help greatly appreciated. -- Da

Re: Appending to treestore - how to set selection on new entry?

2018-08-28 Thread David C. Rankin
On 08/27/2018 01:24 AM, David C. Rankin wrote: > "How do I use the pointer stored in column 2 of the model to set the > selection on that treeview entry?" > > (the full source of the interface is https://github.com/drankinatty/gtkate > which is just a concept a

Re: Does 'left-gravity' for text_mark work in windows to preserve selection bounds? (gtk2)

2018-07-17 Thread David C. Rankin
On 07/17/2018 11:12 PM, David C. Rankin wrote: > Is this a problem with gtk select_range under windows, or just the result of > windows selection being something gtk cannot interface with given the > different windows API? Uugh! Disregard. It does work and will affect the selecti

Does 'left-gravity' for text_mark work in windows to preserve selection bounds? (gtk2)

2018-07-17 Thread David C. Rankin
windows API? -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Is it possible to change buffer in TextView (SourceView) when providing Word-Completion?

2018-10-25 Thread David C. Rankin
't seem right that I would need to destroy the entire textview window just to keep completion working with a new buffer. Any help greatly appreciated. -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org ht

Re: GTK+ 2.0/3.0 Windows runtimes

2018-10-23 Thread David C. Rankin
just used the windows gtk2 binaries and it works fine for my purposes. > Can anyone point me to a guide for doing that? Somebody else will have to fill this in... Good luck. -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gt

Re: Howto register/unregister words completion provider on buffer change in textview?

2018-10-01 Thread David C. Rankin
On 09/16/2018 03:53 AM, David C. Rankin wrote: > On 09/16/2018 03:21 AM, David C. Rankin wrote: >> Each treemodel entry has a struct containing a pointer to its >> GtkSourceCompletionWords provider. > > Uugh... > > That should read the editor instance struct associa

That reminds me -- is there a signal that can be used when mouse over mainwin titlebar?

2018-09-26 Thread David C. Rankin
an be used in conjunction with the set_window_title call that would also provide a tooltip on mouseover I could respond to? -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/li

Howto register/unregister words completion provider on buffer change in textview?

2018-09-16 Thread David C. Rankin
awing words from the new buffer instead of the old? When I switch focus back to the original buffer -- completion works fine again, it's something in the switch to the new that I must be missing. Help? -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list

Re: Howto register/unregister words completion provider on buffer change in textview?

2018-09-16 Thread David C. Rankin
On 09/16/2018 03:21 AM, David C. Rankin wrote: > Each treemodel entry has a struct containing a pointer to its > GtkSourceCompletionWords provider. Uugh... That should read the editor instance struct associated with the sourceview has a pointer to its GtkSourceCompletionWords pr

Re: How to get GtkNotebook tab padding?

2018-09-16 Thread David C. Rankin
See the manual (and it does apply in Gtk+3) https://developer.gnome.org/gobject/stable/gobject-The-Base-Object-Type.html#g-object-get -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: ANNOUNCE: Phasing out GTK mailing lists and move to Discord

2019-03-20 Thread David C. Rankin
he way to go until you have some assurance that discourse will preserve community involvement instead of just doing it on hope. -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Moving from mailing lists to Discourse

2019-02-06 Thread David C. Rankin
stood the test of time. I would at least maintain the mailing list as is until you have some confirmation that any change actually accomplishes its stated goals. I for one see no benefit in discourse. -- David C. Rankin, J.D.,P.E. ___ gtk-app-devel-list m