on screen keyboard error with gtk_main_do_event

2017-03-16 Thread Rúben Rodrigues
HI guys, I have a on-screen keyboard that was made for gtk2. Now in gtk3 i get this errors: Gdk-CRITICAL **: gdk_window_get_user_data: assertion 'GDK_IS_WINDOW (window)' failed Gdk-CRITICAL **: gdk_window_get_display: assertion 'GDK_IS_WINDOW (window)' failed Gdk-WARNING **: Event with

Re: How to change GTK+3 label color dynamically

2017-03-16 Thread Richard Shann
From: R?ben Rodrigues > On 16-03-2017 11:20, Tilo Villwock wrote: > > Am Donnerstag, den 16.03.2017, 09:55 + schrieb R?ben Rodrigues: > >> Hi, > >> > >> THanks. This is dynamically? I need in c language if possible :S > > Dynamic version: > > > > ... > > > > static

Re: Can I get libgtk dependency packages automation.

2017-03-16 Thread michinari.nukazawa
Hum... I decided to use this binary. https://www.dropbox.com/sh/8d1qbh5dsp044on/UgkALzhlqH Thanks. On 2017年03月07日 03:05, michinari.nukazawa wrote: Hello. I devel to the vecterion vector graphics editor. https://github.com/MichinariNukazawa/vecterion_vge on Linux and Win64. libgtk binary

Re: How to change GTK+3 label color dynamically

2017-03-16 Thread Rúben Rodrigues
You are right. I don't know why don't works before, because I had already tested and doesn't work... BU apparently now works with gdk_screen_get_default(); THanks for your help. On 16-03-2017 14:07, Tilo Villwock wrote: > Am Donnerstag, den 16.03.2017, 13:50 + schrieb Rúben Rodrigues: >>

Re: How to change GTK+3 label color dynamically

2017-03-16 Thread Rúben Rodrigues
OK, now works: if(css_provider == NULL){ css_provider = gtk_css_provider_new(); apply_css(gtk_builder_get_object(builder,"window_Main"),css_provider); g_object_unref(css_provider); } gtk_css_provider_load_from_data (css_provider,"#label_Sensors { color: red;

Re: How to change GTK+3 label color dynamically

2017-03-16 Thread Tilo Villwock
Am Donnerstag, den 16.03.2017, 13:50 + schrieb Rúben Rodrigues: > I get this error: > > gtk-CRITICAL **: gtk_style_context_add_provider_for_screen: > assertion  > 'GDK_IS_SCREEN (screen)' failed > > COde:  > gtk_style_context_add_provider_for_screen(gtk_widget_get_style_contex >

Re: How to change GTK+3 label color dynamically

2017-03-16 Thread Rúben Rodrigues
I get this error: gtk-CRITICAL **: gtk_style_context_add_provider_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed COde: gtk_style_context_add_provider_for_screen(gtk_widget_get_style_context(GTK_WIDGET(gtk_builder_get_object(builder,"window_Main"))), GTK_STYLE_PROVIDER

Re: How to change GTK+3 label color dynamically

2017-03-16 Thread Rúben Rodrigues
No! This is the ID: https://ibin.co/3FlPSBGuokBB.png and this is the widget name https://ibin.co/3FlPnPaDN7Zl.png that i used in css provider. This is not the problem because in start of the program i change the label to other color to understand if css provider is working. And works, but when

Re: How to change GTK+3 label color dynamically

2017-03-16 Thread Emmanuele Bassi
You keep using an id in the selector, but you never show how you set the id on the widget. I suspect you think the buildable ID you use with GtkBuilder is also the ID used when theming — which is definitely not the case. You will need gtk_widget_set_name(), instead. Of course, that comes with its

Re: How to change GTK+3 label color dynamically

2017-03-16 Thread Rúben Rodrigues
I provide my code in previous emails. This is my code now: if(css_provider == NULL){ css_provider = gtk_css_provider_new(); gtk_style_context_add_provider (gtk_widget_get_style_context(GTK_WIDGET(gtk_builder_get_object(builder,"window_Main"))),

Re: How to change GTK+3 label color dynamically

2017-03-16 Thread Rúben Rodrigues
Hi, This is what i have, and don't works... On 16-03-2017 11:20, Tilo Villwock wrote: > Am Donnerstag, den 16.03.2017, 09:55 + schrieb Rúben Rodrigues: >> Hi, >> >> THanks. This is dynamically? I need in c language if possible :S > Dynamic version: > > ... > > static GtkCssProvider*

Re: How to change GTK+3 label color dynamically

2017-03-16 Thread Tilo Villwock
Am Donnerstag, den 16.03.2017, 09:55 + schrieb Rúben Rodrigues: > Hi, > > THanks. This is dynamically? I need in c language if possible :S Dynamic version: ... static GtkCssProvider* provider = NULL; static void set_label_color(GtkWidget* label, const char* color) { const char* format

How to change GTK+3 label color dynamically

2017-03-16 Thread Rúben Rodrigues
Please help me. I don't see nothing with web to change label color dynamically but i need this urgent THanks again! On 16-03-2017 09:55, Rúben Rodrigues wrote: > Hi, > > THanks. This is dynamically? I need in c language if possible :S > > Thanks > > > On 16-03-2017 07:29, Stefan Salewski

Re: How to change GTK+3 label color dynamically

2017-03-16 Thread Stefan Salewski
On Thu, 2017-03-16 at 09:55 +, Rúben Rodrigues wrote: > Hi, > > THanks. This is dynamically? I need in c language if possible :S > > Thanks Yes. The example https://github.com/ngtk3/nim-gtk3/blob/master/test/colors.nim is dynamically, I used it to generate some color schemes. Entered

Re: How to change GTK+3 label color dynamically

2017-03-16 Thread Rúben Rodrigues
Hi, THanks. This is dynamically? I need in c language if possible :S Thanks On 16-03-2017 07:29, Stefan Salewski wrote: > On Wed, 2017-03-15 at 15:11 +, Rúben Rodrigues wrote: >> Hi, >> >> Now i need to change GtkLabel color dinamically, so i thing that i >> can't >> use Css to do this.. I

Re: How to change GTK+3 label color dynamically

2017-03-16 Thread Stefan Salewski
On Wed, 2017-03-15 at 15:11 +, Rúben Rodrigues wrote: > Hi, > > Now i need to change GtkLabel color dinamically, so i thing that i > can't  > use Css to do this.. I do this in Gtk2: > > gtk_widget_modify_fg(GTK_WIDGET(gtk_builder_get_object(builder,"label > ")),GTK_STATE_NORMAL,  > ); > >

How to change GTK+3 label color dynamically

2017-03-15 Thread Rúben Rodrigues
Hi, Now i need to change GtkLabel color dinamically, so i thing that i can't use Css to do this.. I do this in Gtk2: gtk_widget_modify_fg(GTK_WIDGET(gtk_builder_get_object(builder,"label")),GTK_STATE_NORMAL, ); How can i change the color in Gtk3? Thanks

Re: gtk3 layout background image

2017-03-15 Thread Rúben Rodrigues
Hi again, I tested with GtkBox and don't works.. My code is correct? GFile *file= g_file_new_for_path("custom.css"); GtkStyleProvider *css_provider = GTK_STYLE_PROVIDER(gtk_css_provider_new()); gtk_css_provider_load_from_file(GTK_CSS_PROVIDER(css_provider), file, );

Re: gtk3 layout background image

2017-03-15 Thread Rúben Rodrigues
Thanks, it works! On 15-03-2017 12:49, mhora...@gmail.com wrote: > You need to give the widget a "name" property - than you can select it > in CSS! > > Best, > Martin > > On Wed, 2017-03-15 at 10:28 +, Rúben Rodrigues wrote: >> Hi, >> >> I see now, that the problem i'm not do in correct

Re: gtk3 layout background image

2017-03-15 Thread Rúben Rodrigues
Hi, I see now, that the problem i'm not do in correct mode. I do this: GtkButton{ color: blue; } and works. All buttons change to blue color. But when i'm changing a specific label or GtkBox to put background i do this: GtkLabel#label_Avg_Temp_value{ color: red;

Re: How to set initial size of TextView?

2017-03-15 Thread Chris Green
Eric Cashon via gtk-app-devel-list wrote: > > > Hi Chris, > > Try getting the font height and base the textview height on that. If you > use the font ascent you might have to pad it a little but it should give > you a consistent value to size your textviews

Re: How to set initial size of TextView?

2017-03-14 Thread Eric Cashon via gtk-app-devel-list
Hi Chris, Try getting the font height and base the textview height on that. If you use the font ascent you might have to pad it a little but it should give you a consistent value to size your textviews with based on font size. Eric /* gcc -Wall textview_height1.c -o textview_height1

Re: gtk3 layout background image

2017-03-14 Thread Eric Cashon via gtk-app-devel-list
The layout is similar to a drawing area. Set up your "draw" callback and draw what you like. You can put your pictures in there also and be able to scroll them easily. /* gcc -Wall layout1.c -o layout1 `pkg-config --cflags --libs gtk+-3.0` Tested on Ubuntu16.04 and GTK3.18 */

How to set initial size of TextView?

2017-03-14 Thread Chris Green
I have a top level window in which I have five or six TextView text entry fields. I want to be able to set the fields to different sizes, at least initially. E.g. I have a couple of TextView fields that I want to be just two lines high, two which should be four lines high and one that needs to be

Re: gtk3 layout background image

2017-03-14 Thread Rúben Rodrigues
Thanks again! So, i will test with gtkbox. thanks for explanation.. Às 14:46 de 14/03/2017, Emmanuele Bassi escreveu: > On 14 March 2017 at 14:31, Rúben Rodrigues wrote: >> Just window can have background? > I was referring to GdkWindow, not GtkWindow. > > GtkBox draws

Re: gtk3 layout background image

2017-03-14 Thread Emmanuele Bassi
On 14 March 2017 at 14:31, Rúben Rodrigues wrote: > Just window can have background? I was referring to GdkWindow, not GtkWindow. GtkBox draws background, for instance; GtkGrid does as well. > I don't know why is a violation, because in my case my > applicationdoesn't

Re: gtk3 layout background image

2017-03-14 Thread Rúben Rodrigues
Just window can have background? I don't know why is a violation, because in my case my applicationdoesn't make sense without background image.. On 14-03-2017 14:01, Emmanuele Bassi wrote: > You were not changing the background with your theme: you were > programmatically replacing the base

Re: gtk3 layout background image

2017-03-14 Thread Emmanuele Bassi
You were not changing the background with your theme: you were programmatically replacing the base pixmap of the GdkWindow used by GtkLayout. It was essentially a layering violation, and would actually break your theme. The API reference for each GTK widget should tell you the CSS styling

Re: gtk3 layout background image

2017-03-14 Thread Rúben Rodrigues
Thanks! But in GTK+2 we could change background in layout with this: // Set picture as background. //gdk_pixbuf_render_pixmap_and_mask (pixbuf, , NULL, 0); //style = gtk_style_new (); //style->bg_pixmap[0] = background; //homeWindow =

Re: gtk3 layout background image

2017-03-14 Thread Emmanuele Bassi
Not all GTK containers draw a background, mostly for historical reasons. This has been true for GTK 1.x, 2.x, and 3.x. In particular, GtkLayout does not draw any background with CSS, so you will need to either subclass GtkLayout, override the GtkWidget::draw virtual function, and call

Re: gtk3 layout background image

2017-03-14 Thread Rúben Rodrigues
I verify that i can't use css provider, don't works. My css file is : GtkLayout#layout_Home.background{ background-image: url('background.png'); } GtkLabel#Home_Cooling_Tunnel1_Cooler_label1{ color: white; } GtkLabel#Home_Sensors_MoistAvg_value{ font-family: Segoe UI;

gtk3 layout background image

2017-03-14 Thread Rúben Rodrigues
Hi guys, Finnaly i migrate my application to gtk+3. So, now i neet to change some things like image background. I used css provider like in this : custom.css file: GtkLayout:layout_Home{ background-color: black; } C Program: GFile *file= g_file_new_for_path("custom.css");

Re: Split TextView

2017-03-11 Thread David C. Rankin
On 02/23/2017 01:55 PM, Tuur Dutoit wrote: > Ideally, every page would be a TextView, all backed by 1 TextBuffer, but > that doesn't seem to be possible (out of the box)... > > How would you do this? Why wouldn't that be possible? Each text view allows you to test focus on the text view

Re: does being inside a grid make an entry more editable?

2017-03-10 Thread Dan Hitt
ok, i suppose that i said i would report, so i guess i have to own up to it - i really goofed, and had a shadow variable that i was changing the editability of (so the item in the grid never got it's editability modified). (so: nothing to do with gtk3, or grid, or entry, or anything except me

Re: does being inside a grid make an entry more editable?

2017-03-10 Thread Dan Hitt
Thanks a million Tilo! Your example (which works compiles and runs just fine on my system) proves that my problem lies elsewhere. As to my gtk version, it is probably 3.22.8 (i'm using debian, and installed the gtk3 examples package, and i believe as a result of that i have an app called

Re: Seperating Multiple processes

2017-03-10 Thread Eric Cashon via gtk-app-devel-list
Hi Mike, Have you looked at using a thread pool? https://developer.gnome.org/glib/stable/glib-Thread-Pools.html If you have a folder full of files that you want to transcode you can set up your thread pool to cycle through them. Eric ___

Re: Migrate to gtk3.0

2017-03-10 Thread jcupitt
On 10 March 2017 at 15:48, Rúben Rodrigues wrote: > Yes, i'm using GtkPlot! SO, I think I'm unable to migrate this to gtk3 > because of graphs. SOmeone who knows something about this charts? > http://madebyryan.blogspot.pt/2011/08/smooth-curves-for-gtk-chart-component.html

Re: Migrate to gtk3.0

2017-03-10 Thread Rúben Rodrigues
Thanks Mr. Bassi! Yes, i'm using GtkPlot! SO, I think I'm unable to migrate this to gtk3 because of graphs. SOmeone who knows something about this charts? http://madebyryan.blogspot.pt/2011/08/smooth-curves-for-gtk-chart-component.html Thanks. On 10-03-2017 15:26, Emmanuele Bassi wrote: >

Re: Migrate to gtk3.0

2017-03-10 Thread Emmanuele Bassi
On 10 March 2017 at 15:11, Rúben Rodrigues wrote: > Hi, > > i'm trying to migrate from gtk2.0 to gtk3.0 and i'm following gnome > tutorial > https://developer.gnome.org/gtk3/stable/gtk-migrating-2-to-3.html#id-1.6.3.3 > > When i put > > make CFLAGS+="-DGDK_DISABLE_DEPRECATED

Migrate to gtk3.0

2017-03-10 Thread Rúben Rodrigues
Hi, i'm trying to migrate from gtk2.0 to gtk3.0 and i'm following gnome tutorial https://developer.gnome.org/gtk3/stable/gtk-migrating-2-to-3.html#id-1.6.3.3 When i put make CFLAGS+="-DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" to don't use deprecated symbols I get this errors:

Seperating Multiple processes

2017-03-10 Thread Mike Martin
Hi I have a weird issue on an application I am developing The application is fully tabbed and runs loops to transcode video files, and I would like to be able to run the main transcoding loop fully in parrellel, ie: the process running in one tab is totally seperate to that running in another tab

Re: Homogeneous table

2017-03-10 Thread Stefan Salewski
On Fri, 2017-03-10 at 10:32 +, Rúben Rodrigues wrote: > HI, > > Thanks for your reply. NExt i will change to gtk3, but i think that i > need to change many things.. It could be simple to make a homogeneous > table and hide images, unfortunately not.. I don't know exactly what you desire, but

Re: Homogeneous table

2017-03-10 Thread Rúben Rodrigues
HI, Thanks for your reply. NExt i will change to gtk3, but i think that i need to change many things.. It could be simple to make a homogeneous table and hide images, unfortunately not.. On 09-03-2017 18:59, cecas...@aol.com wrote: Hi Ruben, Consider using a drawing

Re: does being inside a grid make an entry more editable?

2017-03-10 Thread Tilo Villwock
Hello Dan, I don't think this issue is related to entries being placed inside a grid. I created this minimal example and it's working fine for me: #include static void activate(GApplication* app, gpointer user_data) { GtkWidget* window = gtk_application_window_new(

does being inside a grid make an entry more editable?

2017-03-09 Thread Dan Hitt
I have some entries that are inside a grid (all gtk3 stuff). I cannot seem to make them uneditable with a call to gtk_editable_set_editable(). I also have an entry outside the grid, which gtk_editable_set_editable() certainly can make uneditable. So i think the difference between the two cases

Re: Homogeneous table

2017-03-09 Thread Eric Cashon via gtk-app-devel-list
Hi Ruben, Consider using a drawing area and GTK3. There are more drawing and graphical capabilities in GTK3. Going forward to GTK4 I expect even more drawing capabilities since every computer sold these days has a gpu and the software can take advantage of that. With a drawing area you get

Get tty device for the application that lost focus

2017-03-09 Thread John Lane
I am not sure whether this is possible, but here goes... I am writing a Gtk3 application whilst learning the API and I am pushing it by trying to achieve some edgy things! My application, which is suitably privileged, can inject some arbitrary text into the tty of another application. It does

Re: Glade crash

2017-03-09 Thread Jim Charlton
Pozz: I see what you mean. I observe exactly what you observe (glade-3.20 on Ubuntu-16.10). I do note that if you add data back to the fan_store columns... then all three of the TreeViews come back as expected. I have to admit that I am not an expert on glade use. I was doing some

Homogeneous table

2017-03-09 Thread Rúben Rodrigues
Hi guys, I have this table : https://ibin.co/3EyWlgNYl1uK.png This table have 5 columns, each column has an image. I just want to see one image at a time, but I do not want to center that image, that is, I want to see it in its correct position. SO, when i do this next code image should be in

Re: Gtk+ progress bar color

2017-03-08 Thread Rúben Rodrigues
Thanks for your help... Yes i don't understand why gtk doesn't aloow us to do some "basic" things.. On 08-03-2017 14:52, Stefan Salewski wrote: > On Wed, 2017-03-08 at 14:18 +, Rúben Rodrigues wrote: >> I asked to the Google before, but he don't give me nothing about >> this >> :-).

GtkImage XAlign dynamically

2017-03-08 Thread Rúben Rodrigues
Hi, In glade gtkImage have xalign property to change image alignment. How can i change this in code dynamically? Thanks ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Gtk+ progress bar color

2017-03-08 Thread Eric Cashon via gtk-app-devel-list
If the default progress bar in GTK isn't what you are looking for then you can always make your own. You can design it how you want easy enough with a drawing area. With GTK3 you have OpenGL, Cairo, gradients, tensor-product patch meshes, etc. to draw with. You even have a frame clock for

Re: Gtk+ progress bar color

2017-03-08 Thread Stefan Salewski
On Wed, 2017-03-08 at 15:23 +, Emmanuele Bassi wrote: > Sorry, we haven't yet found the way to write a `gtk_do_what_i_mean()` > function. > > > But we have to tell them: We should not > > do that, it may be possible with CSS... So we have no Kids in GTK > for > > more than 10 years now, so so

Re: Gtk+ progress bar color

2017-03-08 Thread Phil Wolff
On 03/08/2017 07:23 AM, Emmanuele Bassi wrote: Sorry, we haven't yet found the way to write a `gtk_do_what_i_mean()` function. You aim too low; try for gtk_do_what_i_should_have_meant (). ___ gtk-app-devel-list mailing list

Re: Gtk+ progress bar color

2017-03-08 Thread Emmanuele Bassi
On 8 March 2017 at 15:11, Stefan Salewski wrote: > On Wed, 2017-03-08 at 15:00 +, Rúben Rodrigues wrote: >> Thanks for your help... Yes i don't understand why gtk doesn't aloow >> us >> to do some "basic" things.. You're explicitly asking about GTK+ 2.x, whose API was last

Re: Gtk+ progress bar color

2017-03-08 Thread Rúben Rodrigues
I tried before run my app with different them like black but don't works. So if we don't should change the colors, why themes doesn't change too? On 08-03-2017 15:11, Stefan Salewski wrote: > On Wed, 2017-03-08 at 15:00 +, Rúben Rodrigues wrote: >> Thanks for your help... Yes i don't

Re: Gtk+ progress bar color

2017-03-08 Thread Rúben Rodrigues
Works for me too. Thank you! On 08-03-2017 15:02, Stefan Salewski wrote: > On Wed, 2017-03-08 at 15:52 +0100, Stefan Salewski wrote: >> On Wed, 2017-03-08 at 14:18 +, Rúben Rodrigues wrote: >>> I asked to the Google before, but he don't give me nothing about >>> this >>> :-). PRELIGHT

Re: Gtk+ progress bar color

2017-03-08 Thread Stefan Salewski
On Wed, 2017-03-08 at 15:00 +, Rúben Rodrigues wrote: > Thanks for your help... Yes i don't understand why gtk doesn't aloow > us  > to do some "basic" things.. Well, the GTK senior developers will say that such "color hacks" are ugly and do not fit theming well. That may be true. But the

Re: Gtk+ progress bar color

2017-03-08 Thread Stefan Salewski
On Wed, 2017-03-08 at 15:52 +0100, Stefan Salewski wrote: > On Wed, 2017-03-08 at 14:18 +, Rúben Rodrigues wrote: > > > > I asked to the Google before, but he don't give me nothing about > > this  > > :-). PRELIGHT doesn't work too.. > >  Well, the fix suggested by Owen Taylor in that old

Re: Gtk+ progress bar color

2017-03-08 Thread Stefan Salewski
On Wed, 2017-03-08 at 14:18 +, Rúben Rodrigues wrote: > I asked to the Google before, but he don't give me nothing about > this  > :-). PRELIGHT doesn't work too.. Yes, you are right. I just took this example: https://www.spinics.net/lists/gtk/msg00686.html //gcc -o simple t.c `pkg-config

Re: Gtk+ progress bar color

2017-03-08 Thread Rúben Rodrigues
I asked to the Google before, but he don't give me nothing about this :-). PRELIGHT doesn't work too.. On 08-03-2017 13:53, Stefan Salewski wrote: > On Wed, 2017-03-08 at 13:30 +, Rúben Rodrigues wrote: >> Yes, doesn't work for me.. Because: >> >>

Re: Gtk+ progress bar color

2017-03-08 Thread Stefan Salewski
On Wed, 2017-03-08 at 13:30 +, Rúben Rodrigues wrote: > Yes, doesn't work for me..  Because: > > gtk_widget_modify_bg(GTK_WIDGET(gtk_builder_get_object(builder,"Menu_ > Birds_ProgressBr")),GTK_STATE_NORMAL,  > ); > > This changed background color, and this > >   >

Re: Gtk+ progress bar color

2017-03-08 Thread Rúben Rodrigues
Yes, doesn't work for me.. Because: gtk_widget_modify_bg(GTK_WIDGET(gtk_builder_get_object(builder,"Menu_Birds_ProgressBr")),GTK_STATE_NORMAL, ); This changed background color, and this

Re: Gtk+ progress bar color

2017-03-08 Thread Stefan Salewski
On Wed, 2017-03-08 at 12:29 +, Rúben Rodrigues wrote: > Hi, > > Thanks. Yes i want to change in gtk 2.x and change it in my app > only.  > There's no way in proprieties? Do the ordinary GTK2 functions not work for your case? Like gtk_widget_modify_fg() and gtk_widget_modify_bg()

Re: Gtk+ progress bar color

2017-03-08 Thread Rúben Rodrigues
Hi, Thanks. Yes i want to change in gtk 2.x and change it in my app only. There's no way in proprieties? On 07-03-2017 19:48, Stefan Salewski wrote: > On Tue, 2017-03-07 at 15:43 +, Rúben Rodrigues wrote: >>> Hi guys, >>> >>> How can i change progress bar color? >>> >>> Thanks >>> >> > For

Re: Which icon for GTK_STOCK_EDIT?

2017-03-07 Thread zahlenmeer
On Tue, 07 Mar 2017 07:40:59 +0100 Tilo Villwock wrote: > Hello, > > I think when it comes to icons you're not supposed to use the stock > item facilities anymore. Exactly. That's why I am porting away from using them. > > and browse through the available icons. Once

Re: Gtk+ progress bar color

2017-03-07 Thread Stefan Salewski
On Tue, 2017-03-07 at 15:43 +, Rúben Rodrigues wrote: > > > > Hi guys, > > > > How can i change progress bar color? > > > > Thanks > > > > For GTK 3.20 and above you can do it, using CSS. I did a similar fix for scrollbar width for my 27 inch 4 display. I think I wrote how I did it here

Re: How to use glade with a GtkHeaderBar with different layouts

2017-03-07 Thread Tristan Van Berkom
On Tue, 2017-03-07 at 11:05 +0100, Iñigo Martínez wrote: > Thank you very much for your kind support Tristan, those hints are > very much appreciated. > > While I understand that the template actually is a definition of the > class hierarchy, I was thinking about it as a description of the UI, >

Gtk+ progress bar color

2017-03-07 Thread Rúben Rodrigues
> Hi guys, > > How can i change progress bar color? > > Thanks > ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How to use glade with a GtkHeaderBar with different layouts

2017-03-07 Thread Iñigo Martínez
Thank you very much for your kind support Tristan, those hints are very much appreciated. While I understand that the template actually is a definition of the class hierarchy, I was thinking about it as a description of the UI, and in that sense it would have been nice to have some way to define

Re: Which icon for GTK_STOCK_EDIT?

2017-03-06 Thread Tilo Villwock
Hello, I think when it comes to icons you're not supposed to use the stock item facilities anymore. I would recommend getting the gtk3-icon-browser and browse through the available icons. Once you found a suitable one you can apply one by invoking the *_from_icon_name family of function

Re: How to use glade with a GtkHeaderBar with different layouts

2017-03-06 Thread Tristan Van Berkom
On Mon, 2017-03-06 at 22:26 +0100, Iñigo Martínez wrote: > Recently, I started moving UI code from bare C to Glade XML files, so > the UI definition gets split from the UI logic. > > One of the widgets I have been moving is a GtkHeaderBar. The > application uses a GtkStack to move between

How to use glade with a GtkHeaderBar with different layouts

2017-03-06 Thread Iñigo Martínez
Recently, I started moving UI code from bare C to Glade XML files, so the UI definition gets split from the UI logic. One of the widgets I have been moving is a GtkHeaderBar. The application uses a GtkStack to move between diferent windows, and the code creates, adds and destroys the buttons on

Which icon for GTK_STOCK_EDIT?

2017-03-06 Thread zahlenmeer
Stock items are deprecated and the documentation mostly shows which named icon to use instead. Such information is missing for GTK_STOCK_EDIT (although I assume it is missing for a good reason). Now, I want to use an "edit" icon. Which one should I use? "gtk-edit" seems to work, but probably not

Can I get libgtk dependency packages automation.

2017-03-06 Thread michinari.nukazawa
Hello. I devel to the vecterion vector graphics editor. https://github.com/MichinariNukazawa/vecterion_vge on Linux and Win64. libgtk binary package is old. I need latest version. Win64: http://win32builder.gnome.org/gtk+-bundle_3.10.4-20131202_win64.zip and Ubuntu16.04: 3.18.9 in default APT

Makefile missing separator

2017-03-06 Thread Sascha Manns
Hello list, as proposed there https://wiki.gnome.org/MigratingFromIntltoolToGettext i used: PublicanCreator.desktop: $(desktop_files)           

Re: Glade crash

2017-03-06 Thread Pozz Pozz
Glade 3.20 I'm using was installed from msys2[1] package. This is because it is the only way I discovered to installed the most up to date release. Indeed, Glade website links to 3.14.2 binary release. I noticed there are some messages[2] on the msys2 console when Glade crashes, maybe they help

Re: Glade crash

2017-03-06 Thread Pozz Pozz
Hello jim, I tried with a virtual machine of Ubuntu (downloaded from osboxes.org). It's Ubuntu 16.10. I installed Glade 3.20. The first[1] is the screenshot after opening the original .glade file. It seems ok (note the presence of one data row in fans_store ListStore and the rendering of three

Re: Glade crash

2017-03-05 Thread Jim Charlton
I have no problem opening this file and deleting rows in the fan store. I am using glade-3.20 on Ubuntu-16.10 with gtk-3.20. Notably, this file opens but does not display its contents correctly when I try to open it with glade-3.19 on Ubuntu-16.04 with gtk-3.18 (although it does not crash).

Re: Come up with layout like QT in new version

2017-03-05 Thread Andrea Giammarchi
GTK https://www.gtk.org yy http://www.acronymfinder.com/Slang/YY.html C https://developer.gnome.org/gtk3/stable/gtk-getting-started.html Python http://www.pygtk.org Qt https://www.qt.io Best Regards On Fri, Mar 3, 2017 at 9:53 AM, feyyaz özdemir < ozdemirprograml...@outlook.com> wrote: >

Come up with layout like QT in new version

2017-03-05 Thread feyyaz özdemir
Hello i want to use GTK yy while using c language programming language python programming language but if I have layout like QT, ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: win32 (via Wine): 'image-missing' not present in theme Adwaita

2017-03-04 Thread Norbert de Jonge
Hi Emmanuele, Thanks for your feedback. > You need to generate the icon cache on the > target machine. Assuming "target machine" in this context is the target operating system, how do I generate icon cache on Windows (Wine on Linux, in my case)? >> Note that I don't want to move the executable

Re: win32 (via Wine): 'image-missing' not present in theme Adwaita

2017-03-04 Thread Emmanuele Bassi
On 4 March 2017 at 21:01, Norbert de Jonge wrote: >> I'm running my ported GTK+ application via Wine, and it keeps >> throwing: >> - >> Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: >> Icon 'image-missing' not present in theme Adwaita >> - >>

Re: win32 (via Wine): 'image-missing' not present in theme Adwaita

2017-03-04 Thread Norbert de Jonge
Hi all, Recently, I wrote: = > I'm running my ported GTK+ application via Wine, and it keeps > throwing: > - > Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: > Icon 'image-missing' not present in theme Adwaita > - > > How can I get rid of this? > > I've already

Re: Glade crash

2017-03-03 Thread Pozz Pozz
Hello Dan, you can download the glade file from this link ( https://drive.google.com/file/d/0B1s7dNPGsJ3CZllrOUVwNWw4TWM/view?usp=sharing ). 2017-03-03 4:10 GMT+01:00 Daniel Kasak : > There

Re: Glade crash

2017-03-02 Thread Daniel Kasak
There is no attachment. Try sharing it a different way - pastebin or something. Dan On Wed, Mar 1, 2017 at 5:18 AM, pozzugno wrote: > Most probably this isn't the most appropriate mailing list, because I > think my issue is related to Glade (and not Gtk libraries). > >

Re: Fwd: Resize and place a background image (Expose Event)

2017-03-02 Thread Rúben Rodrigues
Hi, Still crash after a while.. but needs more time.. What could be? Thanks Às 10:41 de 02/03/2017, Gabriele Greco escreveu: Now, application crash after start, but i think that is because i make the unref of pixbuf, and in next expose event, fails (i think)... GdkPixbuf-CRITICAL **:

Re: win32 (via Wine): 'image-missing' not present in theme Adwaita

2017-03-02 Thread Norbert de Jonge
> Also the all the *-from-stock (e.g. gtk_button_new_from_stock) > functions have been deprecated in GTK 3.10 so maybe that’s the issue? Ah, that must be it, yes. I use gtk_image_new_from_icon_name() for menu icons, and now that you mention it these indeed do not show up. So, that must be where

Re: Fwd: Resize and place a background image (Expose Event)

2017-03-02 Thread Gabriele Greco
> > > Now, application crash after start, but i think that is because i make > the unref of pixbuf, and in next expose event, fails (i think)... > > GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion 'GDK_IS_PIXBUF > (src)' failed This happens because your original "pixbuf" is a global

Re: Fwd: Resize and place a background image (Expose Event)

2017-03-02 Thread Rúben Rodrigues
Thank you very much!! I'm not sure if i have to do this every time an expose event occurs.. I think that i just need on start of application.. But i test on start of application, i i don't have widget->allocation values, to make the resize.. Now, application crash after start, but i think that

Re: win32 (via Wine): 'image-missing' not present in theme Adwaita

2017-03-02 Thread Code Musings
Hello Norbert, which GTK version are you porting to and what is the call you’re using that causes the GTK Warning about the missing icon? I don’t have a Windows machine but the 'image-missing' icon is definitely present on my machine (I checked using gtk3-icon-browser). Also the all the

Fwd: Resize and place a background image (Expose Event)

2017-03-02 Thread Gabriele Greco
> > This works, but application blocks after a while.. > I'm quite sure the problem is that you are leaking at least 2 pixbuf and a pixmap for every expose event your app receives, and anyway, are you sure you have to do it every time an expose event is thrown and not only when the window is

Glade crash

2017-03-02 Thread pozzugno
Most probably this isn't the most appropriate mailing list, because I think my issue is related to Glade (and not Gtk libraries). Attached is one of my graphical interface, designed with Glade. Unfortunately when Glade opens this file, it seems it is very unstable if I try to change

Re: Resize and place a background image (Expose Event)

2017-03-02 Thread Rúben Rodrigues
Hi, I have made progress, i use this function to make the resize: pixbuf = gdk_pixbuf_scale_simple(pixbuf, widget->allocation.width, widget->allocation.height, GDK_INTERP_BILINEAR); This works, but application blocks after a while.. Here is the Expose event function: void

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. > > GtkWidget *evbox;

Re: what should I do if I got "Stream has outstanding operation" error.

2017-03-01 Thread KC
2017-03-02 2:29 GMT+08:00 KC : > Hi, > > I use g_output_stream_printf() to send command to a server > and use g_data_input_stream_read_line() to read data back. > > Sometime I got error message "Stream has outstanding operation". > What should I do if I detect this error ? > Do

Howto attach a popup menu to a menubar (gtk2)

2017-03-01 Thread David C. Rankin
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. GtkWidget *evbox; /* popup menu container */ GtkWidget *pmenu;

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

2017-03-01 Thread David C. Rankin
On 02/23/2017 12:53 PM, cecas...@aol.com wrote: > > Hi David, > > I tried out gtkedit and it compiled and worked fine. Did a few searches > and it found the words. > When I compiled I got a few warnings like the following. > > gtk_common_dlg.c: In function ‘err_dialog’: >

what should I do if I got "Stream has outstanding operation" error.

2017-03-01 Thread KC
Hi, I use g_output_stream_printf() to send command to a server and use g_data_input_stream_read_line() to read data back. Sometime I got error message "Stream has outstanding operation". What should I do if I detect this error ? Do I need to flush() the IO stream after g_output_stream_printf() ?

Resize and place a background image

2017-03-01 Thread Rúben Rodrigues
Hi, I'm trying to make something like this http://www.kksou.com/php-gtk2/sample-codes/place-a-background-image-in-GtkWindow-Part-6-align-bottom-right-GdkDrawable-draw_pixbuf.php but in C language. For now i just want to fill background image to it's cointainer (GtkLayout), because the

<    6   7   8   9   10   11   12   13   14   15   >