Drawing and mouse in GTK HiDPI aware app (Xorg/Wayland)

2017-09-26 Thread Giovanni Panozzo
Hello, my GTK application draws some bitmaps on a GtkDrawingArea, and receives mouse position events from the same widget (or its container widget). The application is running in a 2x HiDPI scaled desktop, so when the GtkDrawingArea has a logical size of WxH pixel, it's really taking 2*Wx2*H

Re: gdk-pixbuf: pixbuf loader not emitting area-updated/area-prep for partial jpegs on Win32

2017-09-25 Thread Jethram Cockson
On Mon, Sep 25, 2017 at 1:59 AM, Jethram Cockson wrote: > Hi group, > > I'm having issues with gdk-pixbuf loader and JPEGs on my Windows 10 > system with MSYS. The > loader works okay to construct pixbufs. But for some reason, it > refuses to emit area-updated and >

gdk-pixbuf: pixbuf loader not emitting area-updated/area-prep for partial jpegs on Win32

2017-09-25 Thread Jethram Cockson
Hi group, I'm having issues with gdk-pixbuf loader and JPEGs on my Windows 10 system with MSYS. The loader works okay to construct pixbufs. But for some reason, it refuses to emit area-updated and area-prepared until the jpeg is 100% loaded already. That kind of defeats the purpose of that

Re: Mouse leave on a row of GtkTreeView

2017-09-19 Thread Eric Cashon via gtk-app-devel-list
With a treeview you can try measuring your rows and figure out where your cursor is in your treeview. Try the following out and see if it is of any help. Eric /* With Ubuntu16.04 and GTK3.18. gcc -Wall tree_row1.c -o tree_row1 `pkg-config --cflags --libs gtk+-3.0` */ #include

Re: Mouse leave on a row of GtkTreeView

2017-09-19 Thread Eric Cashon via gtk-app-devel-list
Could you use a GtkListBox? With a list box you can add a widget to the row and connect the "enter-notify-event" and "leave-notify-event" signals. There is example code for a list box at https://blog.gtk.org/2017/06/01/drag-and-drop-in-lists-revisited/ It is drag and drop but you could

Mouse leave on a row of GtkTreeView

2017-09-19 Thread pspgen
How can I detect when the mouse cursor leaves a GtkTreeView row ? Note that the signal "cursor-changed" is not what I am looking for, as it gets emitted as if it is a mouse enter (mouseover) event and I need it to be triggered when the mouse has just left the row. However within

Closing a GTK_WINDOW_POPUP?

2017-09-17 Thread The Devils Jester
I am sure this question has been asked and answered a dozen times, but my search-fu is failing me. I want to use GTK_WINDOW_POPUP to create a small window that will close/hide when someone clicks anywhere other than the popup. What is a good way to do this with GTK3 since a GTK_WINDOW_POPUP does

gtk_widget_set_margin_end has no effect

2017-09-16 Thread Alex
H gtk-devs, could it possibly be that "gtk_widget_set_margin_end"/"gtk_widget_set_margin_right" is ignored if the used theme already defines a value for "margin-right" ? I have a custom widget which has GtkToggleButtonClass as parent. For my widget it seems like

Re: gtkdialog maximum size

2017-09-13 Thread Rúben Rodrigues
Thanks. I don't solved my other problem yet. I leave the problem with two dialog for other time. But using GtkScrolledWindow i resolved this problem. Why are you saying that using a scrolled window with parts invisible is not user frindly? Best regards, Ruben Às 11:16 de 13/09/2017, Stefan

Re: gtkdialog maximum size

2017-09-13 Thread rbd
I second Stefan's suggestion of encapsulating your dialog panel within a scrolled window, and in fact I have made it a habit to implement that for every major toplevel window in all of my GUI software. You never know when an app that was designed for a nice fat desktop display will end up

Re: gtkdialog maximum size

2017-09-13 Thread Stefan Salewski
On Wed, 2017-09-13 at 10:34 +, Rúben Rodrigues wrote: > Why are you saying that using a scrolled window with parts invisible > is  > not user frindly? Because the user has to scroll :-) Of course having a scrolled window with active scrollbars can be necessary -- when there is really more

Re: gtkdialog maximum size

2017-09-13 Thread Stefan Salewski
On Wed, 2017-09-13 at 10:59 +0100, Emmanuele Bassi wrote: > Why are you using a GtkDialog? You should be using a GtkWindow for a > complex UI. > > Additionally, the size of a top-level is given by its contents, > unless > you specify a size yourself. If your UI is too big, you'll have to >

Re: gtkdialog maximum size

2017-09-13 Thread Emmanuele Bassi
On 12 September 2017 at 18:06, Rúben Rodrigues wrote: > Someone knows how to limite the maximum size of gtkdialog? My problem is > that as the dialog does resize itself, sometimes it gets bigger that the > screen. Why are you using a GtkDialog? You should be using a

gtkdialog maximum size

2017-09-13 Thread Rúben Rodrigues
Hi guys, Someone knows how to limite the maximum size of gtkdialog? My problem is that as the dialog does resize itself, sometimes it gets bigger that the screen. You can see here: https://ibin.co/3a9dsXej5ArN.png Best regards, Ruben Rodrigues --- Este e-mail foi verificado em termos de

Re: Show dialog after hide another

2017-09-09 Thread Eric Cashon via gtk-app-devel-list
Hi Ruben, You can give the following a try and see if it helps. Basically you don't want to bind up the "main" thread with a long running function and freeze your UI. Eric /* gcc -Wall firmware1.c -o firmware1 `pkg-config --cflags --libs gtk+-3.0` Tested on Ubuntu16.04 and GTK3.18 */

Re: Show dialog after hide another

2017-09-09 Thread Stefan Salewski
On Fri, 2017-09-08 at 11:11 +, Rúben Rodrigues wrote: > Please!! > > Help.. Well, I guess what you want is displaying a message dialog without prior user actions. Maybe you can emit a signal to do that? I don't know, have never needed that. Maybe you can just modify your first dialog,

Re: Show dialog after hide another

2017-09-09 Thread Rúben Rodrigues
Please!! Help.. Às 17:08 de 06/09/2017, Rúben Rodrigues escreveu: > Hi guys, > > > I have i problem when trying to hide a dialog and show another at the > same moment. > > I have a dialog that have an OK button that calls this function: > > void on_button_Util_Firmware_Update_clicked(GtkButton

Re: Can I fix crush file_chooser_dialog on windows?

2017-09-08 Thread michinari.nukazawa
Hello. fix this issue. generate gschemas.compiled, and append share/glib-2.0/gschemas.compiled in release package. generate gschemas.compiled is run command on windows in developer package. ``` bin\glib-compile-schemas.exe share\glib-2.0\schemas ``` Thanks. On 2017年09月07日 22:46,

Re: Can I fix crush file_chooser_dialog on windows?

2017-09-08 Thread michinari.nukazawa
Hello. I tryed update gtk version 3.22.18 to 3.22.20 . Nothing new other issue. But crush near a file_chooser_dialog problem is not changed. It is similar to this error. https://github.com/solvespace/solvespace/issues/215 but has differences in error message. nothing GLib-GIO-ERROR and other.

Re: Can I fix crush file_chooser_dialog on windows?

2017-09-07 Thread michinari.nukazawa
Hello. I tryed update gtk version 3.22.15 to 3.22.18 . Nothing new other issue. But crush near a file_chooser_dialog problem is not changed. What should I try? Thanks. On 2017年08月27日 00:12, michinari.nukazawa wrote: Hello. I develop vecterion vector graphics editor in GTK3/cairo.

Re: Show dialog after hide another

2017-09-07 Thread Nicola Fontana
Il Wed, 6 Sep 2017 16:08:07 + Rúben Rodrigues scrisse: > ... > void on_button_Util_Firmware_Update_clicked(GtkButton *button, gpointer > user_data) > { >     GtkLabel    *gLabel_Result; >     FILE        *fp; >     gchar        pcTmp[BUFSIZ]; > >     // Fecha a

Show dialog after hide another

2017-09-06 Thread Rúben Rodrigues
Hi guys, I have i problem when trying to hide a dialog and show another at the same moment. I have a dialog that have an OK button that calls this function: void on_button_Util_Firmware_Update_clicked(GtkButton *button, gpointer user_data) {     GtkLabel    *gLabel_Result;     FILE       

Re: gdk_pixbuf_new_from_inline to Gresource conversion

2017-09-06 Thread Emmanuele Bassi
On 6 September 2017 at 13:55, Charles Curley wrote: > On Wed, 6 Sep 2017 11:22:25 +0100 > Chris Vine wrote: > >> I am not going to answer your question I am afraid, but I am going to >> make the observation that since GTK+2 will not be

Re: gdk_pixbuf_new_from_inline to Gresource conversion

2017-09-06 Thread Charles Curley
On Wed, 6 Sep 2017 11:22:25 +0100 Chris Vine wrote: > I am not going to answer your question I am afraid, but I am going to > make the observation that since GTK+2 will not be updated except for > bug fixes, unless you are thinking of porting your code to GTK+3 or > GTK+4

Re: gdk_pixbuf_new_from_inline to Gresource conversion

2017-09-06 Thread Chris Vine
On Tue, 5 Sep 2017 16:39:12 -0600 Charles Curley wrote: [snip] > The second one is new on debian 9. I have several options. The > documentation for gdk_pixbuf_new_from_inline () indicates that it is > deprecated and one should use a Gresource. > > Question: how

gdk_pixbuf_new_from_inline to Gresource conversion

2017-09-05 Thread Charles Curley
I have an application developed on Linux using Gnome, specifically GTK+ 2 version 2.24.25-3+deb8u2. It has been compiling and running for seven years. This on debian 8. I would like to port it to debian 9, stretch. Which has GTK+ 2 version 2.24.31. On debian 9, I get the following error:

Re: Multi page widgets in Gtk

2017-09-03 Thread Eric Cashon via gtk-app-devel-list
Hi Mike, A GtkAssistant or even a GtkNotebook might work for your program. What database are you using? There is an easy example of connecting to and getting data from sqlite at https://github.com/cecashon/OrderedSetVelociRaptor/blob/master/simple_sqlite_viewer.c that might be helpful. You

Re: Multi page widgets in Gtk

2017-09-03 Thread Stefan Salewski
On Sun, 2017-09-03 at 13:42 +0100, Mike Martin wrote: > For one of my apps I want to setup a multi page widget with next  > previous > navigation. Have you tried https://developer.gnome.org/gtk3/stable/GtkAssistant.html ___ gtk-app-devel-list mailing

Multi page widgets in Gtk

2017-09-03 Thread Mike Martin
Hi For one of my apps I want to setup a multi page widget with next previous navigation. Is this possible? I cant seem to find an appropriate widget? What I want to do is set up a preview widget based on a db query, so that based on the query each entry would be shown ie: $sql = select

Re: turn on italics in TextView

2017-08-30 Thread Eric Cashon via gtk-app-devel-list
Hi Doug, I would consider it a usability bug but not necessarily a textview widget bug. If you add text, that doesn't have an indent tag, to the start of the line then it doesn't get indented. I suppose you could check the whole line for an indent tag but that would go against performance.

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, J.D.,P.E.

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 "button-spacing" style property? >

Re: turn on italics in TextView

2017-08-29 Thread Doug McCasland
Indeed I tried your code from Aug 15 and if you insert a character at the beginning of the 3rd or 5th line, the indent/margin disappears. Then if you backspace over that inserted character, the indent/margin re-appears. I tried this in <3.20 and 3.22. Would you consider this a bug? I've never

GLib doesn't find the ui resource

2017-08-29 Thread Sascha Manns
Hello list, i have written some ui files which are compiled through make [1]. I installed the compiled file in /usr/share/gnome-publisher. Also i used this lines to add stuff from the resource: builder = Gtk.Builder() builder.add_from_resource("/org/gnome/Publisher/ui/main_intro.ui") [2] But

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

2017-08-27 Thread David C. Rankin
All, I've pulled my hair out trying to find any easy way to set the GtkInfoBar "button-spacing" style properly. This seems like something that should be so simply, but it looks damn near impossible. I've been though the gtk_reference manual, the gobject_reference manual and the best I can do is

Re: Scroll position problem (gtk2)

2017-08-26 Thread Franco Broi
"Other than the value field" Signal Details The “changed” signal void user_function (GtkAdjustment *adjustment, gpointer user_data) Emitted when one or more of the GtkAdjustment fields have been changed, other than the value field. You might want to try using

Scroll position problem (gtk2)

2017-08-26 Thread Matthew A. Postiff
I have a GtkWidget *A that contains another GtkWidget *B. The web content of B changes from B_1 to B_2 when the user clicks a link inside of it. When I click the "Back" button in B_2, I want it to return to B_1 at the last known scroll position. This is the code that I thought would do it--by

Can I fix crush file_chooser_dialog on windows?

2017-08-26 Thread michinari.nukazawa
Hello. I develop vecterion vector graphics editor in GTK3/cairo. https://github.com/MichinariNukazawa/vecterion_vge vecterion do crush on windows. crush near a file_chooser_dialog call (after file save command call) but gtk_message_dialog and glade dialog is not crush. I need glib schemas?

Re: "click" event on a GtkSpinEntry

2017-08-22 Thread Nicola Fontana
Il Tue, 22 Aug 2017 15:10:44 -0400 cecas...@aol.com scrisse: > ... > There is a good read about the spin button at > > https://blog.gtk.org/author/ebassi/ > > with Tim Bader on April 25, 2017. I don't know if you have seen that. Hi Eric, no, I did not see that... it would have saved me some

Re: "click" event on a GtkSpinEntry

2017-08-22 Thread Eric Cashon via gtk-app-devel-list
Hi Nicola, This isn't pretty but it works. There is a good read about the spin button at https://blog.gtk.org/author/ebassi/ with Tim Bader on April 25, 2017. I don't know if you have seen that. My first try was just to get the GdkWindow of the spin button but that gave me the main

"click" event on a GtkSpinEntry

2017-08-21 Thread Nicola Fontana
Hi all, I want to catch a click/button-press event *only* on the entry part of a GtkSpinButton. Put in other words I want to filter out events happening on the up and down buttons of a spin entry. I tried several strategies until actually finding a working approach. The implementation though is

Re: turn on italics in TextView

2017-08-15 Thread Doug McCasland
Indeed, gtk_text_buffer_insert_with_tags_by_name() does what it says. What I was talking about was (in some future Textview) applying the tag to an iter, then whenever the insert point was on that iter, it would inherit the tag properties set there. So typing at that point gets the formatting.

Re: turn on italics in TextView

2017-08-15 Thread Eric Cashon via gtk-app-devel-list
Have you tried gtk_text_buffer_insert_with_tags_by_name() to insert text with a tag at an iter? What tag combo do you use to get the cursor to bounce around? If I test having two indent tags on the same line, the first one applied wins out. This is what I tested with. Eric /* gcc -Wall

Re: turn on italics in TextView

2017-08-15 Thread Doug McCasland
Heh-heh, yes that for loop does look better :-) I'll use that. Textview is awesome and will save me thousands of lines of code, but not being able to apply a tag to an iter -- that has been a big drawback for me. You can discover a tag at an iter, but only apply/remove it to a range. It would

Re: turn on italics in TextView

2017-08-15 Thread Eric Cashon via gtk-app-devel-list
Hi Doug, I made a bit of a pointer mess there. Not the best of answers or way to go about iterating through a list. Looking at some GTK code, this is better done with a for loop. As usual, you don't want to move the pointer you get from gtk_text_iter_get_tags() and then free it. This will

Re: turn on italics in TextView

2017-08-15 Thread Doug McCasland
Eric, thanks again. I ended up using g_signal_connect() on "key-press-event" (instead of "insert-text"). This makes it easier IMO to handle specific cases, since the callback fn can return TRUE if it did anything or FALSE to get GTK default behavior, unlike void insert-text fn. Plus if you

How to make D-Bus server side call as asynchronous ?

2017-08-06 Thread Nitin Jain
Hi, For my project , I am using DBUS as IPC to interact between QT application ( Client Side ) and my service daemon (Server-Side - GIO / GDBUS ). At client side , methods are invoked asynchronously using QDBusPendingCallWatcher. However at server side , how to make method call as async ? .

Re: GdkPixbuf and click events

2017-08-03 Thread Eric Cashon via gtk-app-devel-list
Hi Ferdinand, You can also try putting the pixbuf in an image widget and that into an event box. Eric //gcc -Wall right_click1.c -o right_click1 `pkg-config --cflags --libs gtk+-3.0` #include static GdkPixbuf* draw_a_pixbuf() { cairo_surface_t

Re: GdkPixbuf and click events

2017-08-03 Thread infirit
Op 08/03/2017 om 12:02 AM schreef Ferdinand Ramirez via gtk-app-devel-list: > I have a program that adds a GdkPixbuf to a GtkTextView. I would like to > right click on the image and capture the mouse click event and execute a > callback function. Is there any way of achieving this using

Re: GdkPixbuf and click events

2017-08-03 Thread Chris Moller
I'm not sure it will work, but have you tried wrapping the pixbuf in a GtkEventBox? On 08/02/17 18:02, Ferdinand Ramirez via gtk-app-devel-list wrote: I have a program that adds a GdkPixbuf to a GtkTextView. I would like to right click on the image and capture the mouse click event and

GdkPixbuf and click events

2017-08-03 Thread Ferdinand Ramirez via gtk-app-devel-list
I have a program that adds a GdkPixbuf to a GtkTextView. I would like to right click on the image and capture the mouse click event and execute a callback function. Is there any way of achieving this using GdkPixbuf? Thanks, Ferdinand ___

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

2017-08-01 Thread David C. Rankin
All, I think I've found a bug in Gtk+2 gtk_text_buffer_insert() of a '\n' following an existing '\r' in a GTK_TEXT_BUFFER (to convert end-of-line from `CR` (Max pre-OSX) to `CRLF`. When I locate the existing '\r' end-of-line with gtk_text_iter_forward_to_line_end() and

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 don't

Re: Should a GtkFileFilter be freed or not?

2017-07-31 Thread Lars Paulsen
Hi Andrew, great. Thanks for the quick reply. Greetings, Lars Am 31.07.2017 um 13:19 schrieb A. Walton: On Mon, Jul 31, 2017 at 11:56 AM, Lars Paulsen wrote: Hello All, I got a simple question about the GtkFileFilter: Do I need to free it myself after the dialog I

Re: Should a GtkFileFilter be freed or not?

2017-07-31 Thread A. Walton
On Mon, Jul 31, 2017 at 11:56 AM, Lars Paulsen wrote: > Hello All, > > I got a simple question about the GtkFileFilter: > > Do I need to free it myself after the dialog I used it in has finished? > Or is gtk_widget_destroy(dialog) doing that for me? The latter-ish.

Should a GtkFileFilter be freed or not?

2017-07-31 Thread Lars Paulsen
Hello All, I got a simple question about the GtkFileFilter: Do I need to free it myself after the dialog I used it in has finished? Or is gtk_widget_destroy(dialog) doing that for me? Best Regards, Lars ___ gtk-app-devel-list mailing list

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

2017-07-31 Thread David C. Rankin
All, I have a simple editor project I've been tinkering with (https://github.com/drankinatty/gtkwrite) and I've implemented EOL handling for LF, CRLF, and CR to accommodate Linux/Unix/OSX, DOS/Win, and Mac (pre-OSX). I've run into a question on implementing the EOL in text pasted from the

Preferred width/height warning

2017-07-29 Thread Mike Martin
I am trying to eliminate this warning ie: (membership_gui.pl:4729): Gtk-WARNING **: Allocating size to GtkWindow 0x44d4260 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate? (membership_gui.pl:4729): Gtk-WARNING **: Allocating size to GtkWindow

Buttons is Gtk.Dialog can't be separated?

2017-07-27 Thread John Coppens
Hi all. I mad a small function using Gtk.MessageDialog, and add the requisite Ok and Cancel buttons. But, on the result shown the buttons are glued together and expand to occupy the entire width of the dialog. Using style_get_property, I get reply '4', but this spacing is not visible. Also,

Re: gtk-update-icon-cache.exe is not work?

2017-07-27 Thread michinari.nukazawa
Hello. I tryed run vecterion_vge.exe in package directory. this directory has all gtk library and other files. I don't get that error message, and upon empty application window. (and exist other problem...) It seems that the file was missing. I have not been able to identify that file.

gtk-update-icon-cache.exe is not work?

2017-07-25 Thread michinari.nukazawa
Hello. I develop vecterion vector graphics editor in GTK3/cairo. https://github.com/MichinariNukazawa/vecterion_vge I get this error message. === (vecterion_vge.exe:5292): Gtk-WARNING **: Could not load a pixbuf from icon theme. This may indicate that pixbuf loaders or the mime database could

Have I just found a bug in GTK+ ComboBox?

2017-07-25 Thread Anton Ermolenko
Hello! Context: https://bitbucket.org/p2t2p/gtkcombodemo/src/19be8dfe788c1aec1 a5384eb107facaa38e121ff/main.js?at=master=file-view-default TL;DR GTK+ renders ComboBox popup off-screen if the item is too low in the list. Help needed: * Please confirm if it is a bug or if there is such a bug.

Re: Preferred height/width error message

2017-07-24 Thread Osmo Salomaa
I have this exact same problem in Gaupol, where I have a notebook, which contains scrolled windows and inside tree views. I have looked for the cause, but haven't found it. The vague warning doesn't tell which widget is the problem and I haven't found any solution via calling the implied

Re: Preferred height/width error message

2017-07-24 Thread Mike Martin
Anyone? On 23 July 2017 at 18:30, Stefan Salewski wrote: > On Sun, 2017-07-23 at 17:46 +0100, Mike Martin wrote: > > Gtk version 3.22 > > I see a similar message for evince pdf viewer whenever I use it since > some months. But I have no idea for the reason unfortunately > >

Re: Preferred height/width error message

2017-07-23 Thread Stefan Salewski
On Sun, 2017-07-23 at 17:46 +0100, Mike Martin wrote: > Gtk version 3.22 I see a similar message for evince pdf viewer whenever I use it since some months. But I have no idea for the reason unfortunately (evince:5623): Gtk-WARNING **: Allocating size to EvSidebar 0x12dd6c0 without calling

Preferred height/width error message

2017-07-23 Thread Mike Martin
I am trying to eliminate this warning ie: (membership_gui.pl:4729): Gtk-WARNING **: Allocating size to GtkWindow 0x44d4260 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate? (membership_gui.pl:4729): Gtk-WARNING **: Allocating size to GtkWindow

Re: Moving/resizing a window in real-time

2017-07-20 Thread Eric Cashon via gtk-app-devel-list
Hi Alex, The OpenCV window_gtk.cpp isn't so simple. A lot of tough concepts there. For example the code is written for compiling with both GTK2 and GTK3, makes use of threads, creates a custom GTK widget, uses GTK OpenGL if it can, etc. The GTK functions can only be called on the "main"

logout while on g_application_hold

2017-07-18 Thread Alex
Hi all, I have some questions regarding GtkApplication and triggering on logout. If g_application_hold () is active on my GtkApplication, a user-logout will experience a ~8 second delay (until OS gets the application

Re: Locale switch on the fly

2017-07-17 Thread Igor Chetverovod
Hi Tristan, thank you for your help. Now I have got on the fly switch locale hack for menu items too. Below example code how it was done. #include #include #include #include #define RU_PACKAGE (gchar*) "messages" #define EN_PACKAGE (gchar*) "en_messages" #define LOCALEDIR (gchar*)

Re: Locale switch on the fly

2017-07-17 Thread Tristan Van Berkom
On Mon, 2017-07-17 at 12:32 +0300, Igor Chetverovod wrote: > Hi all, I have a need to switch locale on the fly (without  an > application > UI reload). > I  have a function which are using gkt_container_forall()  for > marking of > all widgets are having GObject property "label" ,  all of them get

Locale switch on the fly

2017-07-17 Thread Igor Chetverovod
Hi all, I have a need to switch locale on the fly (without an application UI reload). I have a function which are using gkt_container_forall() for marking of all widgets are having GObject property "label" , all of them get aditional GObject field "msg_id" with original english text of

Issues with gtk_gesture_get_bounding_box_center()

2017-07-09 Thread Prashant Kumar
Hi everyone, I am trying the get the zoom center point for the zoom gesture. I am using gtk_gesture_get_bounding_box_center() for that, is there any other alternative ? Coming to the main question I am getting some unexpected rapid shifts while performing zoom gesture. To keep things simple I fix

Add idle timout to Menu

2017-07-08 Thread Rúben Rodrigues
Hi guys, Someone knows any way to add a timeout to a Menu because of touchscreen keypress idle event? Thanks --- Este e-mail foi verificado em termos de vírus pelo software antivírus Avast. https://www.avast.com/antivirus ___ gtk-app-devel-list

No data available at callback

2017-07-02 Thread William A oswald
First a top level scenario. I am writing an interface application for a flat bed scanner which will result in the use of the gdk function g_signal_connect. I decided to pass some data to my callback function since it would simplify some of the logic. However, to my surprise I found that the

Re: g_signal_connect() and G_OBJECT

2017-06-30 Thread Emmanuele Bassi
The first argument of `g_signal_connect()` is a gpointer (i.e. a `void*`), so you don't need a cast at all — C will implicitly cast any pointer to `void*`, and from `void*` to any other pointer. Additionally, as you discovered, signals are GTypeInstance features — you can emit signals on anything

g_signal_connect() and G_OBJECT

2017-06-30 Thread Ingo Brückl
Hi, it seems that it was common practice to cast the first argument of g_signal_connect() to G_OBJECT when I started developing applications with GTK+ quite a while ago. At least I've learned it that way and am doing it ever since. I repeatedly see usage of g_signal_connect() without that cast

回复: Can I make GtkPlug transparent?

2017-06-29 Thread 李浩
Thanks you Eric. I will keep trying on it. Regards, Lihao -- 原始邮件 -- 发件人: "cecashon"; 发送时间: 2017年6月27日(星期二) 中午12:22 收件人: "lihao"; 抄送: "gtk-app-devel-list"; 主题: Re: Can I make GtkPlug transparent? It looks like both the plug and socket draw to the

Application development for MS Windows now and in the future

2017-06-29 Thread Joakim Majander
Hello, I was warned about possible near future problems with my software. I use mingw and GTK+ to make software for current MS Windows to be used with the hardware I make. I just learned about Windows 10 S and I was warned that applications not build with MS tools may soon lack the API they

Re: Combobox on touchscreen

2017-06-27 Thread Roland Koebler
Hi, On Mon, Jun 26, 2017 at 10:08:36AM +, Rúben Rodrigues wrote: > Following this post that didn't receive an answer > https://mail.gnome.org/archives/gtk-app-devel-list/2016-June/msg00030.html > , want to ask if someone knows this problem. I know this problem, since I wrote this mail. But

Combobox on touchscreen

2017-06-27 Thread Rúben Rodrigues
Hi guys, Following this post that didn't receive an answer https://mail.gnome.org/archives/gtk-app-devel-list/2016-June/msg00030.html , want to ask if someone knows this problem. Sometimes combobox works, but i think that is dificult to change the state of the combobox. There is a workaround?

Re: Can I make GtkPlug transparent?

2017-06-26 Thread Eric Cashon via gtk-app-devel-list
It looks like both the plug and socket draw to the same window. That would mean that you would have to draw your window background in both the plug and socket "draw" callback functions. There is a plug2.c and socket2.c in the following folder that sets the transparency on the different

Re: Can I make GtkPlug transparent?

2017-06-26 Thread 李浩
Hi Eric, Thanks for your reply! I'm sorry I didn't express the problem clearly. I want to make GtkPlug transparent, so I can see the background of GtkSocket. In other words, if I set a background image on GtkSocket, I hope I can see the image even if I embed a GtkPlug on it. Is there any way to

Re: Can I make GtkPlug transparent?

2017-06-26 Thread Eric Cashon via gtk-app-devel-list
Hi Lihao, If you set the socket color you will be OK. You won't have to worry about the transparency of the plug, in that case. For setting the transparency for the different windows you can try setting the window, socket and plug widgets with the following. It worked on GTK3.18. Couldn't

Can I make GtkPlug transparent?

2017-06-26 Thread 李浩
Hi, I encountered a problem when using GtkPlug and GtkSocket. I use CSS to set the background of GtkSocket to red and then use CSS to make GtkPlug transparent. I think I can see the red color because GtkPlug has been set to transparent, but it's actually black. I can't figure out why the

Re: Can I get GTK_RESPONSE_ACCEPT/REJECT from modal dialog by glade.

2017-06-25 Thread michinari.nukazawa
Hi To do this, you need to set the "Response ID" property on the buttons you add in the action area. It works. Thank you! I love glade, this is good visual gui editor. (I favorite feature is undo/redo.) glade 3.18.3 in Ubuntu16.04 is not recent. :)

Re: Can I get GTK_RESPONSE_ACCEPT/REJECT from modal dialog by glade.

2017-06-25 Thread Tristan Van Berkom
Hi > On Jun 25, 2017, at 5:40 PM, michinari.nukazawa > wrote: > > Hello. > I develop vecterion vector graphics editor in GTK3/cairo. > https://github.com/MichinariNukazawa/vecterion_vge > I try porting the "New Document" dialog to xml file by glade from C code. >

Can I get GTK_RESPONSE_ACCEPT/REJECT from modal dialog by glade.

2017-06-25 Thread michinari.nukazawa
Hello. I develop vecterion vector graphics editor in GTK3/cairo. https://github.com/MichinariNukazawa/vecterion_vge I try porting the "New Document" dialog to xml file by glade from C code. ``` GtkDialogFlags flags = GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT; dialog =

Re: Combobox disable item

2017-06-23 Thread Eric Cashon via gtk-app-devel-list
Add an extra column to your list and use that to set your "sensitive" property for the row. Eric /* gcc -Wall combo_filter2.c -o combo_filter2 `pkg-config --cflags --libs gtk+-3.0` Tested on GTK3.18 and Ubuntu16.04 */ #include static void combo2_changed(GtkComboBox *combo2,

Re: Header bar: Keyboard accessibility?

2017-06-23 Thread Michael Torrie
On 06/23/2017 12:35 PM, Yuri Khan wrote: > On Sat, Jun 24, 2017 at 1:21 AM, Michael Torrie wrote: > >>> I’m on 3.18, and here’s my test application/mockup: >>> >>> http://yurikhan.github.io/images/20170623-gtk-header-bar.png >> >> Oh I see. Yes that's different. The

Re: Header bar: Keyboard accessibility?

2017-06-23 Thread Yuri Khan
On Sat, Jun 24, 2017 at 1:21 AM, Michael Torrie wrote: >> I’m on 3.18, and here’s my test application/mockup: >> >> http://yurikhan.github.io/images/20170623-gtk-header-bar.png > > Oh I see. Yes that's different. The application menu usually refers (at > least in my mind) to

Re: Header bar: Keyboard accessibility?

2017-06-23 Thread Michael Torrie
On 06/23/2017 11:15 AM, Yuri Khan wrote: > What GTK3 version are you on? Could you make a screenshot so I could > see we’re talking about the same thing? Gtk 3.20 here. > > I’m on 3.18, and here’s my test application/mockup: > > http://yurikhan.github.io/images/20170623-gtk-header-bar.png Oh

Re: gtk_rgba_parse retunr wrong color

2017-06-23 Thread Eric Williams
Hello, On 06/23/2017 10:54 AM, Rúben Rodrigues wrote: Hi, Someone knows why gdk_rgba_parse returns worng color? I have this gdk_rgba_parse(_color,"rgb(8,178,23)"); cairo_set_source_rgba(cr, front_color.red, front_color.blue, front_color.green, front_color.alpha); The color should be

gtk_rgba_parse retunr wrong color

2017-06-23 Thread Rúben Rodrigues
Hi, Someone knows why gdk_rgba_parse returns worng color? I have this gdk_rgba_parse(_color,"rgb(8,178,23)"); cairo_set_source_rgba(cr, front_color.red, front_color.blue, front_color.green, front_color.alpha); The color should be green but returns blue... Thanks --- Este e-mail foi

Re: Header bar: Keyboard accessibility?

2017-06-23 Thread Yuri Khan
On Fri, Jun 23, 2017 at 11:15 AM, Michael Torrie wrote: > All the Gnome 3 apps that use a header bar that I have at my disposal > let me open the application menu with F10. Even when I run the app > under the most primitive window manager out there, TWM. Are they doing >

Creating custom widget linker error

2017-06-23 Thread Rúben Rodrigues
Hi, I'm trying to create a custom widget like in this example: http://djcj.org/gtk/ The example works, but when i try to make something similar i get a linker error, and don't understand why! Error: make all Building target: ConsolaGrafica Invoking: Cross GCC Linker arm-linux-gnueabihf-gcc

Re: Combobox disable item

2017-06-23 Thread Mike Martin
I am trying to make entries "greyed-out" ie: disabled, rather than hidden eg the Combobox model contains ('Scandvb','DVB module','DVDb5-Scan') There is another comboox with a configuration file chosen I want to be able to make one or more of the entries unselectable if prerequites are not

Re.: GtkDrawingArea size request

2017-06-22 Thread Rúben Rodrigues
Solved. Someone have a example of how to create a custom widget with cairo in C? Thanks Mensagem original Assunto: Fwd: GtkDrawingArea size request De: Rúben Rodrigues Para: gtk-app-devel-list@gnome.org CC: Someone received my question? Thanks Mensagem

Re: Header bar: Keyboard accessibility?

2017-06-22 Thread Michael Torrie
On 06/22/2017 12:03 PM, Yuri Khan wrote: > And now for the title question. In this latter scenario, how does the > user access the application menu without having to use a pointing > device? Is every application supposed to implement that? As a > developer, how would I go about that? As a user,

Re: Combobox disable item

2017-06-22 Thread Eric Cashon via gtk-app-devel-list
Hi Mike, What part of the combo box are you trying to disable? If you want to filter rows or columns you can set up a tree model filter to do so. Maybe something like the following? Eric /* gcc -Wall combo_filter1.c -o combo_filter1 `pkg-config --cflags --libs gtk+-3.0` Tested

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" The search paths problem was the

<    3   4   5   6   7   8   9   10   11   12   >