Re: GtkDrawingArea size request

2017-06-22 Thread Eric Cashon via gtk-app-devel-list
Hi Ruben, You might consider allowing the gauge to expand with the window size. This makes the gauge a lot more flexible. When drawing a gauge it is useful to get a general coordinate drawing on screen that you can check your gauge drawing with. Both cartesian coordinates and radial

Header bar: Keyboard accessibility?

2017-06-22 Thread Yuri Khan
Hello everybody. I have heard of desktop environments that display the application menu in a dedicated place (GNOME Shell, OS X). Presumably, in that case the desktop environment provides a key that the user can press to open the application menu. I am not on such a system. That means every GTK

GtkDrawingArea size request

2017-06-22 Thread Rúben Rodrigues
Hi, I create a drawing area to draw a circular gauge with cairo. GtkWidget *drawing_area = gtk_drawing_area_new (); gtk_widget_set_size_request (drawing_area, 100, 100); gtk_box_pack_start (GTK_BOX(gtk_builder_get_object(builder, "box30")),drawing_area,FALSE,TRUE,0); The problem is

Combobox disable item

2017-06-22 Thread Mike Martin
Hi Is it possible to disable an item in a combobox? I cant find anything about this, set_sensitive only seems to apply to either cell-renderer or widget thanks Mike ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Fwd: GtkDrawingArea size request

2017-06-21 Thread Chris Moller
There's no reason the drawing area code you're showing shouldn't work. The most obvious possibility is that the size of your enclosing widget (GTK_BOX(gtk_builder_get_object(builder, "box30"))) isn't set right--the default is that your drawing area will expand to fill its parent. On 06/21/17

Fwd: GtkDrawingArea size request

2017-06-21 Thread Rúben Rodrigues
Someone received my question? Thanks Mensagem reencaminhada Assunto:GtkDrawingArea size request Data: Wed, 21 Jun 2017 10:08:15 +0100 De: Rúben Rodrigues Para:

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

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.

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

2017-06-21 Thread David C. Rankin
All, This is a bizarre issue. I have a small editor written in gtk+2 (with optional build w/gktsourceview) It builds and runs without issue on Linux. I've built it on windows (and it builds without issue), but when running the editor, if I type and 'i' in the text view window, it 'indents' the

Re: turn on italics in TextView

2017-06-20 Thread Eric Cashon via gtk-app-devel-list
On that last post, I think that I have some bad pointer arithmetic. Moving a pointer past the end and freeing a moved pointer. Not so good. Eric ... GSList *tlist=NULL; GSList *p=NULL; GSList *next=NULL; tlist=gtk_text_iter_get_tags(); p=tlist; if(tlist!=NULL) {

Re: turn on italics in TextView

2017-06-20 Thread Eric Cashon via gtk-app-devel-list
Another option is to look at the properties of the tags to get the information that you need. This might work better than saving globals and matching pointers. Eric ... GSList *tlist=NULL; GSList *next=NULL; tlist=gtk_text_iter_get_tags(); if(tlist!=NULL) { do

Re: Find path under mouse

2017-06-20 Thread Anthony Ruth
If I understand correctly, you want to get the x and y value of the mouse at the time when the keyboard event happens. You can either use GdkDeviceManager to get the pointer and then get x and y from that, or listen for motion_notify events on your treeview and keep track of x and y values (I

Find path under mouse

2017-06-19 Thread Daniel Kasak
Hi all. Reposting from the gtk-perl list ... no responses there ... Back in gtk+-2.x, I had some code that could find the path underneath the mouse ( I was looking for double-click events in a treeview in this case ): --- my ( $self, $treeview, $event ) = @_; if ( $event->type eq

Re: turn on italics in TextView

2017-06-19 Thread Doug McCasland
​Thanks again. That works, but ​the state is lost when the cursor is moved. Here is some code to discover multiple styles after the cursor is moved. The pointers to the style tags are saved in globals, then in the callback for the cursor move, we look for those pointers in the linked-list

Re: undefined reference to gtk label set xalign

2017-06-19 Thread Rúben Rodrigues
I add the full library path to linker and works, but now the function don't makes anything id xalign is 1.0. A change to 0.0 and works.. What's going on? Code: for(i=0;i<2;i++) if(xHouseList[i].box == NULL){ xHouseList[i].box =

Re: undefined reference to gtk label set xalign

2017-06-17 Thread Nicola Fontana
Il Fri, 16 Jun 2017 08:58:41 + Rúben Rodrigues scrisse: > Hi guys, > > Someone could help with this? > https://stackoverflow.com/questions/44547398/undefined-reference-to-gtk-label-set-xalign Hi, you are linking against GTK+ 3.14.5 and gtk_label_set_xalign has been

undefined reference to gtk label set xalign

2017-06-16 Thread Rúben Rodrigues
Hi guys, Someone could help with this? https://stackoverflow.com/questions/44547398/undefined-reference-to-gtk-label-set-xalign Thanks --- Este e-mail foi verificado em termos de vírus pelo software antivírus Avast. https://www.avast.com/antivirus

Re: Integrate IP Camera stream in GTK app

2017-06-14 Thread Rúben Rodrigues
Hi Eric, I know that we can do with gstreamer, but i'm using an raspberry pi and what i tested dont't works because raspberry pi just shows an image of camera and don't play the stream. I get an error of "computer to slow", but just stay slow after run gstreamer. I used vlc too, and in my

Re: turn on italics in TextView

2017-06-14 Thread Eric Cashon via gtk-app-devel-list
Here are a few things that might improve the above code a little. Use gtk_button_set_focus_on_click(GTK_BUTTON(toggle1), FALSE); instead of a grab. Also the global gboolean can be eliminated if you pass the toggle button pointer to the "insert-text" callback. Then you can just use

Re: turn on italics in TextView

2017-06-13 Thread Eric Cashon via gtk-app-devel-list
Hi Doug, You can try using the "insert-text" callback to set your italics on the inserted text. This is what I came up with to test. The signal is connected after so that the update occurs first. Careful about not changing the location iter also since there is a warning in the documentation

Re: GtkLabel max-width-chars with ellipsize broken?

2017-06-13 Thread Eric Cashon via gtk-app-devel-list
What version of GTK are you using? It does work on my computer. The label expands and shrinks as the window expands and shrinks and the label stops expanding at 012345678901234567... I take that to be 20 chars if you start at 0 and include the three dots. The tooltip shows the full string.

Re: GtkLabel max-width-chars with ellipsize broken?

2017-06-13 Thread infirit
On 10/06/17 19:39, cecas...@aol.com wrote: > Hi infirit, Hi > Give the hexpand a try and see if that works. It works for me on Python3.5 > and GTK3.18 Define works :) Does it limit to what was set as maximum width chars? When resizing does it use the available space to show more or less

Re: Integrate IP Camera stream in GTK app

2017-06-13 Thread Eric Cashon via gtk-app-devel-list
Hi Ruben, I am sure you can do that with GTK and GStreamer. That way the code would be portable across platforms. I don't have any examples of using GStreamer to get video from an ip camera. I have some test code that will show the video from the local webcam.

Integrate IP Camera stream in GTK app

2017-06-13 Thread Rúben Rodrigues
Hi guys, Someone knows how to integrate IP Camera stream in GTK+ app? I tested with libvlc an gstreamer in my raspberrry pi, but don't works.. Any other library to make this? Thanks Rúben --- Este e-mail foi verificado em termos de vírus pelo software antivírus Avast.

turn on italics in TextView

2017-06-12 Thread Doug McCasland
Hi, I am trying GTK3 TextView, in C. I know how to apply tags, such as italics, bold, etc., to a region of text. But how do I "turn on" a style (italics, bold, etc) while typing in the buffer? For example, suppose I am typing text and there are no styles set. Then I want to type in italics. I

Re: GtkLabel max-width-chars with ellipsize broken?

2017-06-10 Thread Eric Cashon via gtk-app-devel-list
Hi infirit, Give the hexpand a try and see if that works. It works for me on Python3.5 and GTK3.18 Eric ... halign=Gtk.Align.CENTER, hexpand=True) .. ___ gtk-app-devel-list mailing list

GtkLabel max-width-chars with ellipsize broken?

2017-06-10 Thread infirit
Hi, I have been trying to use "max-width-chars" with ellipsize on a label that acts as a page label for a notebook with zero success. It appears it is completely ignored as whatever I use, -1 to 200 nothing ever changes how it looks. How it looks is either we only see a single character with

Re: recommendations for new laptop as existing one could crash.

2017-06-05 Thread Chris Green
jcup...@gmail.com wrote: > I've been happy with my xps-13, fwiw. > > https://arstechnica.co.uk/gadgets/2017/01/dell-xps-13-ubuntu-review-2017/ > > It's £1200 for the one with Ubuntu pre-installed. Fedora works well > too, apparently. > The other widely recommended laptops for Linux are Lenovo

Re: recommendations for new laptop as existing one could crash.

2017-06-05 Thread jcupitt
I've been happy with my xps-13, fwiw. https://arstechnica.co.uk/gadgets/2017/01/dell-xps-13-ubuntu-review-2017/ It's £1200 for the one with Ubuntu pre-installed. Fedora works well too, apparently. John ___ gtk-app-devel-list mailing list

Re: recommendations for new laptop as existing one could crash.

2017-06-05 Thread Karan Ahuja
Has anyone tried macbook air with fedora? As macbook air specs, cost look good. Cheers, Karan On 5 Jun 2017 17:45, "Karan Ahuja" wrote: > hi guys , > > I am new to gtk app development but excited about it. > > I am currently using dell inspiron with ubuntu 16.04 and

Re: Live Thumbnail of Widgets

2017-06-02 Thread Gergely Polonkai
On Fri, Jun 2, 2017, 20:57 infirit wrote: > On 20/05/17 16:27, Gerald Nunn wrote: > > I'm looking for some advice on alternative solutions that would fit my > > needs. In an ideal solution, the thumbnails would be updated real time > > similar to the windows in gnome-shell

Re: Live Thumbnail of Widgets

2017-06-02 Thread infirit
On 20/05/17 16:27, Gerald Nunn wrote: > I'm looking for some advice on alternative solutions that would fit my > needs. In an ideal solution, the thumbnails would be updated real time > similar to the windows in gnome-shell when you go into overview mode. > However any solution that increases the

Re: customized alignment in gtk text view

2017-06-01 Thread Karan Ahuja
Hey Florian and group, Thank you man. I did not know about tab stops. This looks really good. I shall try this out. Best Regards, Karan Ahuja On Thu, Jun 1, 2017 at 6:51 PM, Florian Müllner wrote: > Hey, > > this is not a question about the development of GTK+, but

Re: customized alignment in gtk text view

2017-06-01 Thread Florian Müllner
Hey, this is not a question about the development of GTK+, but about using GTK+ for app development - gtk-app-devel-list is a better place for this, so moving there. On Thu, Jun 1, 2017 at 3:10 PM Karan Ahuja wrote: > > I wish to display 3 lines in gtk textview as

Re: Close button in GtkNotebook

2017-05-29 Thread Augusto Fraga Giachero
Hi Eric, I was doing something similar with what you have proposed, it works but the end result differs from what I've observed on other gnome applications (Nautilus, Gedit etc...). I want my application to be as consistent and theme agnostic as possible. But the central idea of your

Re: Recoloring of symbolic icons

2017-05-29 Thread Arnaud
Dear Gtk+, just following up with myself. I struggled and struggled, until finally giving up on recoloring images using the 'color' CSS property. This attribute seems to be ignored in most cases, so I guess it's just not supposed to be used the way I wanted to use it. In the end, the only case

Re: Close button in GtkNotebook

2017-05-29 Thread Stefan Salewski
On Sun, 2017-05-28 at 16:08 -0300, Augusto Fraga Giachero wrote: > I've been playing with Glade and GtkNotebook for while, and I > couldn't > figure a way to enable the close button on the tabs I guess what you want is what gedit does with the tabs? The gedit code has been modified a few times

Re: Close button in GtkNotebook

2017-05-28 Thread Eric Cashon via gtk-app-devel-list
Hi Augusto, This doesn't use glade but it might help out. You can add a label and button to a box and add it to the notebook tab. In the button "clicked" callback you can us the notebook pointer if you need that variable. If you want to be able to really customize the look and size of the

Thanks again ff

2017-05-28 Thread Hashem nolastname
Of course& I ffrg we g free 4r_r__ RE to get some g ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Close button in GtkNotebook

2017-05-28 Thread Augusto Fraga Giachero
Hi, I've been playing with Glade and GtkNotebook for while, and I couldn't figure a way to enable the close button on the tabs like this: With I've read online it seems that I need to add a GtkBox to the tab title area and add the label and a standard GtkButton to the right, but the GtkButton

Pre requisite for gtk3

2017-05-28 Thread sakthiperumal karuthasamy
Hi, I am running​ example application folder in gtk source but it's giving error in the line of type declaration. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtktree: combination filter and using gtk_tree_model_foreach

2017-05-24 Thread Eric Cashon via gtk-app-devel-list
Hi Rob, The trick here is to use gtk_tree_model_filter_convert_iter_to_child_iter(). That will get the iter that you need. It will work the same on both GTK2 and GTK3. You have to be a little careful with gtk_tree_model_foreach(). It is easy to add nodes and then the function will check

gtktree: combination filter and using gtk_tree_model_foreach

2017-05-24 Thread Rob Alblas
In a GtkTree I want to use a filter, and also extend the tree using gtk_tree_model_foreach. The combination of the 2 gives problems. In the function connected to gtk_tree_model_foreach I use the GtkTreeIter *iter argument, which gives an error message: Gtk-CRITICAL **:

Recoloring of symbolic icons

2017-05-22 Thread El Boulangero
Hi Gtk+, Short story: In my application, I have use custom symbolic icons, and I want to recolor them with the css. What I observe right now is that, as long as my icons are loaded from a svg file, they are not recolored and remain grey. However, if I render my icons to png with

Re: questions regarding gtkcheckbutton

2017-05-22 Thread Chris Moller
In theory, this should probably be done with CSS, but I've been unable to make that work. Instead, I'm using the sequence GtkWidget *image = gtk_image_new (); gtk_widget_set_size_request (image, 16, 16); g_signal_connect (G_OBJECT (image), "draw", G_CALLBACK

questions regarding gtkcheckbutton

2017-05-21 Thread songqing shan
Hello, I have a few questions regarding using gtkcheckbutton as follows. 1. how can I change or reduce the size of gtkcheckbutton (small square) in gtkcheckbutton? It is too big and makes a big space between lines. I want to make it smaller so that the space between lines are similar to

gtkbuilder.*.xml

2017-05-21 Thread Matt Postiff
I have a bunch of files called gtkbuilder.*.xml in my gtk2 program. I am having trouble on msys2 to use gettext to extract strings from them for i18n. xgettext says that it doesn't recognize the extension xml. Are these files named in a non-standard way? Should they be rather called

Live Thumbnail of Widgets

2017-05-20 Thread Gerald Nunn
I work on the Tilix terminal emulator and I'm looking at enhancing some functionality. At the moment Tilix uses a siderbar rather then tabs to manage multiple pages (or sessions as they are referred to in Tilix). This sidebar is in a GTKRevealer that can be popped out and shown as needed and in

Re: How to in GTK3 set global default text size?

2017-05-16 Thread Igor Chetverovod
Done! I had copied changed settings.ini file to the folder /etc/gtk-3.0 in aplication folder and font size was updated in whole UI of application. 2017-05-16 16:58 GMT+03:00 Igor Chetverovod : > Hello, Emmanuele! > > In the installation sequence for windows there is a

Re: How to in GTK3 set global default text size?

2017-05-16 Thread Emmanuele Bassi
Windows XP is a completely unsupported platform that just recently had a major vulnerability that exposed systems worldwide to ransomware, and it's well-known that state actors (and people who managed to get access to state actors tools) are still sitting on other vulnerabilities. GTK+ does *not*

Re: How to in GTK3 set global default text size?

2017-05-16 Thread Igor Chetverovod
Hello, Emmanuele! In the installation sequence for windows there is a trap - msys2 version for WinXP(my application is using this OS) is not more provided. So, I can install only GTK3.6 version which was provided Tarnyko ( thanks to him!) (http://www.tarnyko.net/dl/gtk.htm). Thank you, I

Re: How to in GTK3 set global default text size?

2017-05-16 Thread Emmanuele Bassi
First of all, GTK+ 3.6.4 was released in January 2013, which means it's 4.5 years old and it's completely unsupported. The latest (long-term support) stable release is 3.22.15; please use that, especially if you're developing for Windows. Follow the instructions on the GTK+ website to know how

How to in GTK3 set global default text size?

2017-05-16 Thread Igor Chetverovod
Hello list, I am making porting my own win32 application from GTK2 to GTK3.6.4. I have an issue, for GTK3 all text labels on the user interface have a bigger font size then for GTK2. Is there global setting which can control default font size for UI elements? Best regards, Igor

Gtk Assistant check entries

2017-05-15 Thread Rúben Rodrigues
Hi guys, I ahve a assistant page, and i want to check all entrie in first page to mark as complete. You can see assistant here: https://ibin.co/3MXmlhjIHrgA.png I used GtkEditable -> changed signal, but after i changed entrie there is no call to the function callback: static void

Re: coordinate system context for a drawing area uses (relative to get_allocation)

2017-05-15 Thread Dan Hitt
Thanks Tadej. That's a very good reference. (Also, thanks for creating a tutorial on using glade some years back, which i found useful.) dan On Mon, May 15, 2017 at 12:25 AM, Tadej Borovšak wrote: > On Sat, May 13, 2017 at 05:00:43PM -0700, Dan Hitt wrote: >> So it appears

Re: coordinate system context for a drawing area uses (relative to get_allocation)

2017-05-15 Thread Tadej Borovšak
On Sat, May 13, 2017 at 05:00:43PM -0700, Dan Hitt wrote: > So it appears that when you draw in a drawing area, using commands > like (cairo_)move_to and (cairo_)line_to, the path is rendered > relative to the top left of the area. > > More explicitly, if you try to figure out how far you can

Re: How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22

2017-05-13 Thread Richard Shann
On Wed, 2017-05-10 at 18:34 +0100, Emmanuele Bassi wrote: > On 2017-05-08 at 13:57, Richard Shann wrote: > > On Mon, 2017-05-08 at 12:28 +0100, Emmanuele Bassi wrote: > > > > > But I will have to wait for > > > > Debian to catch up with Gtk 3.20 before I can seriously look at this. > > > > > >

How to change the size of gtkcheckbutton since gtk3.10

2017-05-12 Thread songqing shan
Hello, I would like to know how to change the size of gtkcheckbutton since gtk 3.10. Do you have an example to change the size of gtkcheckbutton ? thanks, Song ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Get GtkWindow focus from XI Event

2017-05-11 Thread Takao Fujiwara
Thanks for your reply. Let me send the question to gtk-devel-l...@gnome.org again. On 05/11/17 21:19, Emmanuele Bassi-san wrote: You likely want to ask on gtk-devel-l...@gnome.org and/or on the #gtk+ IRC channel on irc.gnome.org. Ciao, Emmanuele. On 11 May 2017 at 13:15, Takao Fujiwara

How to set the space between rows in the gtklistbox.

2017-05-11 Thread songqing shan
Hi, I want to know how to set the space between rows in the gtklistbox. I can not find any method in the gtklistbox. I used some methods in gtkwedget and gtkcontainer to set the space between rows in the gtklistbox, but they failed. Any help will be appreciated. Regards, Song

Re: Get GtkWindow focus from XI Event

2017-05-11 Thread Emmanuele Bassi
You likely want to ask on gtk-devel-l...@gnome.org and/or on the #gtk+ IRC channel on irc.gnome.org. Ciao, Emmanuele. On 11 May 2017 at 13:15, Takao Fujiwara wrote: > On 05/11/17 20:55, Takao Fujiwara-san wrote: >> >> I have a focus problem with the attached program. >> 1.

Re: Get GtkWindow focus from XI Event

2017-05-11 Thread Takao Fujiwara
On 05/11/17 20:55, Takao Fujiwara-san wrote: I have a focus problem with the attached program. 1. When press Ctrl-Alt-v, my window is launched with the keyboard focus. 2. Click [x] button and close the window. 3. When press Ctrl-Alt-v again, my window is launched but the focus status is

Get GtkWindow focus from XI Event

2017-05-11 Thread Takao Fujiwara
I have a focus problem with the attached program. 1. When press Ctrl-Alt-v, my window is launched with the keyboard focus. 2. Click [x] button and close the window. 3. When press Ctrl-Alt-v again, my window is launched but the focus status is different by desktop. XFCE4 desktop can get the

Re: How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22

2017-05-10 Thread Emmanuele Bassi
On 2017-05-08 at 13:57, Richard Shann wrote: > On Mon, 2017-05-08 at 12:28 +0100, Emmanuele Bassi wrote: > > > But I will have to wait for > > > Debian to catch up with Gtk 3.20 before I can seriously look at this. > > > > And this is why I suggest you use a CSS class, instead; > > Is that

Re: How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22

2017-05-08 Thread Richard Shann
On Mon, 2017-05-08 at 12:28 +0100, Emmanuele Bassi wrote: > On 8 May 2017 at 12:04, Richard Shann wrote: > > >> But I'd strongly recommend you use CSS classes instead of styling the > >> bare element name. > >> > >> CSS selectors in GTK+ work exactly like the HTML

Re: How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22

2017-05-08 Thread Emmanuele Bassi
On 8 May 2017 at 12:04, Richard Shann wrote: >> But I'd strongly recommend you use CSS classes instead of styling the >> bare element name. >> >> CSS selectors in GTK+ work exactly like the HTML counterpart; you can >> style "div" or "p" directly, but it's often much

Re: How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22

2017-05-08 Thread Richard Shann
On Mon, 2017-05-08 at 08:42 +0100, Emmanuele Bassi wrote: > On 7 May 2017 at 20:57, Richard Shann wrote: > > On Sun, 2017-05-07 at 19:52 +, Emmanuele Bassi wrote: > >> > >> On Sun, 7 May 2017 at 19:53, Richard Shann > >> wrote: > >> > >>

Re: How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22

2017-05-08 Thread Emmanuele Bassi
On 7 May 2017 at 20:57, Richard Shann wrote: > On Sun, 2017-05-07 at 19:52 +, Emmanuele Bassi wrote: >> >> On Sun, 7 May 2017 at 19:53, Richard Shann >> wrote: >> >> On Sun, 2017-05-07 at 17:54 +0100, Emmanuele Bassi wrote: >>

Re: How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22

2017-05-07 Thread Richard Shann
On Sun, 2017-05-07 at 19:52 +, Emmanuele Bassi wrote: > > On Sun, 7 May 2017 at 19:53, Richard Shann > wrote: > > On Sun, 2017-05-07 at 17:54 +0100, Emmanuele Bassi wrote: > > On 7 May 2017 at 16:52, Richard Shann >

Re: How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22

2017-05-07 Thread Emmanuele Bassi
On Sun, 7 May 2017 at 19:53, Richard Shann wrote: > On Sun, 2017-05-07 at 17:54 +0100, Emmanuele Bassi wrote: > > On 7 May 2017 at 16:52, Richard Shann wrote: > > > I have a test program that pops up a label with a customized > > background > >

Re: How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22

2017-05-07 Thread Richard Shann
On Sun, 2017-05-07 at 17:54 +0100, Emmanuele Bassi wrote: > On 7 May 2017 at 16:52, Richard Shann wrote: > > I have a test program that pops up a label with a customized > background > > and foreground color. This works in 3.12 using the syntax > > > > "GtkLabel

Re: How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22

2017-05-07 Thread Emmanuele Bassi
On 7 May 2017 at 16:52, Richard Shann wrote: > I have a test program that pops up a label with a customized background > and foreground color. This works in 3.12 using the syntax > > "GtkLabel {background-color: #00;}" > > and > > "GtkLabel {color: #FF00FF;}" > > but

How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22

2017-05-07 Thread Richard Shann
I have a test program that pops up a label with a customized background and foreground color. This works in 3.12 using the syntax "GtkLabel {background-color: #00;}" and "GtkLabel {color: #FF00FF;}" but fails in 3.22 How can I track changes needed to CSS syntax from one version to

Gtk-CRITICAL **: _gtk_builder_extend_with_template: assertion 'buffer && buffer[0]' failed

2017-05-01 Thread songqing shan
Hello, I would like to have someone help me with following situation. I wrote a few custom widgets such as bao_model, and bao_model_container with ui files. These widgets work well in some environments such as static void project_setup(GSimpleAction *action, GVariant *parameter, gpointer

Re: GUI size and translations

2017-04-26 Thread Emmanuele Bassi
The usual way to deal with this is to set a `max-width-chars` on the labels and set the `ellipsize`, `lines`, and `wrap` properties; if you're using gettext, then you can leave a translator comment (which will get included in the POT file) to tell the translator how many characters are available

GUI size and translations

2017-04-26 Thread Gabriele Greco
I've recently received the localization strings for my application in a few languages and I've found that few translations keep the gui minimum size larger that the screen of many notebook (my target is to make it fit 1280 pixels). I've not found an easy way to understand what string is causing

Adwaita Theme in GTK+3.22 update

2017-04-25 Thread Ruben Rodrigues
Hi guys, I have tooltips in linecharts that don't works in gtk+3.14 version that i had in my raspberry pi. But 3.14 version is the latest version in raspberry apt-get repo, so i compiled gtk+3.22 by myself. Other problem is that css provider is different from gnome documentation. Now i see

Re: Trouble setting the value of a GtkAdjustment

2017-04-25 Thread Richard Shann
On Mon, 2017-04-24 at 14:48 -0400, cecas...@aol.com wrote: > > Hi Richard, > > It looks like how you add containers makes a difference in this case. > Also the window placement might have to be adjusted after the window > is shown. Here is a try at it. Thank you very much - it seems you are

Trouble setting the value of a GtkAdjustment

2017-04-24 Thread Richard Shann
Compiling with Gtk 3.14.5 I can't seem to set the "value" of a GtkAdjustment once I have added a widget to it with gtk_container_add(), it seems to be locked at 0.0 The code looks like this fragment:

Gtk+3.22 compile app error

2017-04-22 Thread Rúben Rodrigues
Hi guys, I'm working with raspbian and the version installed by apt-get install is older, so i download and compile 3.22 version and installed. Now when i'm trying to compile my application i get this error: - undefined reference to `pango_fc_font_map_config_changed'. The newest version need

Re: gtk-app-devel-list Digest, Vol 156, Issue 16

2017-04-22 Thread Richard Shann
> Date: Fri, 21 Apr 2017 09:01:54 + > From: R?ben Rodrigues > To: "gtk-app-devel-list@gnome.org" > Subject: CheckButton background color > Message-ID: > >

CheckButton background color

2017-04-21 Thread Rúben Rodrigues
Hi, Someone knows how to change gtkcheckbutton background and size in CSS? i tried this: Checkbutton CSS for Red: GtkCheckButton .check { background: red; color: white; min-width: 8px; min-height: 8px; border-width: 0px; } and checkbutton check { background: red; color: white;

Update Gtk+3.0

2017-04-21 Thread Rúben Rodrigues
Hi guys, I'm in trouble with gtk version i think. When i run pkg-config --modversion gtk+-3.0 in my Raspberry Pi that is running Raspbian OS, i get 3.14.5 version. If i try to update with sudo apt-get update and sudo apt-get upgrade, i have the same version. How i can update to gtk+-3.20

Re: Doubt

2017-04-21 Thread Emmanuele Bassi
On 20 April 2017 at 11:03, Rúben Rodrigues wrote: > Hi guys, > > i have a problem with callback functions. I have a struct in parameter but > always give null values. Here is an example: > > > struct pxToggleData{ > LineChartSeries *series; > LineChart *chart; >

Doubt

2017-04-21 Thread Rúben Rodrigues
Hi guys, i have a problem with callback functions. I have a struct in parameter but always give null values. Here is an example: struct pxToggleData{ LineChartSeries *series; LineChart *chart; GtkWidget *canvas; }; xTempToggle.canvas = canvas; xTempToggle.chart = chart;

scroll bar

2017-04-19 Thread Rúben Rodrigues
Hi guys, Someone could help with scroll bar, zoom gesture and pan gesture ? I add this zoom callback, and i need to change the scroll bar. But i don't understand the paramentes of gtk_adjustment_configure(). static void zoom_scale_changed (GtkGestureZoom *gesture, gdouble

Re: Custom GtkHeaderBar

2017-04-17 Thread Takao Fujiwara
On 04/18/17 02:52, cecas...@aol.com-san wrote: If I use gtk_style_context_add_class(context, "header"); As I replied, I fixed that problem to call this.get_style_context().remove_class("csd") after set_titlebar(header) is called. Fujiwara The background drawn to the event box window is

Re: Custom GtkHeaderBar

2017-04-17 Thread Eric Cashon via gtk-app-devel-list
If I use gtk_style_context_add_class(context, "header"); The background drawn to the event box window is transparent on my computer. I just used "menu" to test a different color from the theme but there are many that you can test. The style classes are at the bottom of the documentation

Re: Custom GtkHeaderBar

2017-04-16 Thread Takao Fujiwara
I think your example still draws the green color of the hbox but not the theme color of GtkHeaderBar. I also think the menu and headerbar's colors are different. Fujiwara On 04/16/17 04:25, cecas...@aol.com-san wrote: I gave it another try and "header" gtk_style_context_add_class() is

Re: Custom GtkHeaderBar

2017-04-15 Thread Eric Cashon via gtk-app-devel-list
I gave it another try and "header" gtk_style_context_add_class() is transparent. I can use "menu" and that returns a darker color that is used on the title bar. It is C again. I did get foo.vala output to foo.c. Too much stuff. Eric /* gcc -Wall box1.c -o box1 `pkg-config --cflags

Re: Custom GtkHeaderBar

2017-04-15 Thread Takao Fujiwara
On 04/15/17 04:36, cecas...@aol.com-san wrote: I suspect set_titlebar(header); is causing the problem. If you remove that, then you will have a box that you place in the main window. If it is a header bar box it will be below the titlebar. The box itself is just doing the layout so it uses

Re: Custom GtkHeaderBar

2017-04-15 Thread Takao Fujiwara
On 04/16/17 00:05, Takao Fujiwara-san wrote: On 04/15/17 04:36, cecas...@aol.com-san wrote: A little limited here since I don't have a C# setup and am using GTK3.18 which doesn't have all the 3.22 functions. What OS are you using and how did you setup C# for programming with? Sorry, ignored

Re: Custom GtkHeaderBar

2017-04-15 Thread Takao Fujiwara
On 04/15/17 04:36, cecas...@aol.com-san wrote: A little limited here since I don't have a C# setup and am using GTK3.18 which doesn't have all the 3.22 functions. What OS are you using and how did you setup C# for programming with? Sorry, ignored this question. Now I understood what you

guile 2.0 / ghci REPL integration

2017-04-15 Thread PICCA Frederic-Emmanuel
Hello, I am developping a C application using GTK3 on Debian stretch. I would like to add a REPL into it (ghkl, which is a diffractometer control application). I know about haskell, so it would be nice to have ghci integrated into it. But if necessary I could have a look at guile-2.0, whch dos

Re: Custom GtkHeaderBar

2017-04-14 Thread Eric Cashon via gtk-app-devel-list
I suspect set_titlebar(header); is causing the problem. If you remove that, then you will have a box that you place in the main window. If it is a header bar box it will be below the titlebar. The box itself is just doing the layout so it uses the window behind it. You can draw on the

Re: Custom GtkHeaderBar

2017-04-13 Thread Takao Fujiwara
Thanks for the example. But I'd pull the CSS color of GtkHeaderBar to follow the theme colors instead of the hardcoded draw_box(). As I attached in the previous mail, calling gtk_widget_class_set_css_name(class, "headerbar") can set the themed background-color but the behavior is different

Re: Custom GtkHeaderBar

2017-04-13 Thread Eric Cashon via gtk-app-devel-list
Hi Fujiwara, The GtkBox is going to use the background window for it's color. The box just does the layout. If you create a header bar from a box you will have to draw on the background where your header bar is going to be. This can get a little tricky to get the measurements that you need. A

Re: Custom GtkHeaderBar

2017-04-12 Thread Takao Fujiwara
I could resolve this issue to call this.get_style_context().remove_class("csd") after set_titlebar(header) is called. But not sure why I have to remove "csd" class while it's a custom header. Fujiwara On 04/11/17 21:33, Takao Fujiwara-san wrote: I'd like to create a custom GtkHeaderBar in

Re: gtk function with argv

2017-04-11 Thread Eric Cashon via gtk-app-devel-list
Hi Ruben, I think what you are looking for is a C variadic function. Something that works like g_object_set() with a Null terminated list of arguments. Using dynamic glib containers might be a better choice. It is simpler to just pass a single pointer with your user_data to functions which

Custom GtkHeaderBar

2017-04-11 Thread Takao Fujiwara
I'd like to create a custom GtkHeaderBar in GTK 3.22. If I use GtkBox as the header, it can draw the background color. If I use a class inherited from GtkBox, it draws the transparent color. Seems GtkBox uses rgba from ".titlebar:not(headerbar)" of gtk-contained.css:1736 but the inherited class

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