Bug 554926 still in 2.24.31

2017-04-25 Thread Ingo Brückl
Please apply commit e3bd926c1ef83027c756488ba19f4353930fc6db to current
GTK+ 2 (2.24.31) where it is missing.

The bug has been described in

  https://bugzilla.gnome.org/show_bug.cgi?id=554926

and has been fixed on Tue, 10 Aug 2010 04:13:22 + (UTC) in 2.90.5.

Ingo
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list


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 that the appearence of adwaita dark theme changed from 3.14 to 
3.22 version. As you can see between https://ibin.co/3K9lircSkiAK.png 
and https://ibin.co/3K9nIHAJ3NZK.png , the size of text and spinbuttons 
changed and when clicked  we can't see previous values.


Other issue is that i need to run everytime export 
LD_LIBRARY_PATH=/usr/local/lib to run my app with 3.22 version. After i 
installed gtk+3.22 gtk demo gives me this error:


gtk3-demo

** (gtk3-demo:15107): CRITICAL **: Invalid property: 
GtkTextView.top-margin on line 2


If you could help i appreciate.

THanks

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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 right, by moving the
gtk_container_add() calls until just before the gtk_show_all() the
GtkAdjustment widget becomes controllable. The values it has are no
longer what were set when it was created however, so I set it with this
code after the gtk_show_all() call:

gdouble lower, upper, page;
lower = gtk_adjustment_get_lower (hadj);
upper = gtk_adjustment_get_upper (hadj);
page = gtk_adjustment_get_page_size (hadj);
//g_print ("Lower ... %f %f %f\n", lower, upper, page);
gtk_adjustment_set_value (hadj, (upper-page - lower)/2);

which gets the horizontal slider in the middle.

The values when printed out are:

Lower ... 0.00 1901.00 800.00

where those values come from is a mystery. And, I suppose the way it
changes depending on the order of placing the widgets inside each other
will have to remain a mystery too.

Thanks once again,

Richard


> 
> Eric
> 
> 
> //gcc -Wall adj1.c -o adj1 `pkg-config --cflags --libs gtk+-3.0`
> //Tested on Ubuntu16.04 and GTK3.18
> 
> #include
> 
> int main(int argc, char **argv)
>  {
>gtk_init(, );
> 
>GtkWidget *keyboard_window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
>gtk_window_set_title(GTK_WINDOW(keyboard_window), "Keyboard
> Window");
>gtk_window_set_default_size(GTK_WINDOW(keyboard_window), 200, 200);
>gtk_window_set_position(GTK_WINDOW(keyboard_window),
> GTK_WIN_POS_CENTER);
>g_signal_connect(keyboard_window, "destroy",
> G_CALLBACK(gtk_main_quit), NULL);
> 
>GtkWidget *label=gtk_label_new("Label");
>gtk_widget_set_size_request(label, 400, 400);
> 
>//GtkAdjustment *ADJ = gtk_adjustment_new (1.5, 0.0, 2.0, 0.01,
> 0.01, 0.01);
>//GtkWidget *sw = gtk_scrolled_window_new (ADJ , gtk_adjustment_new
> (1.5, 0.0, 2.0, 0.01, 0.01, 0.01));
>GtkAdjustment *ADJ = gtk_adjustment_new (100.0, 0.0, 400.0, 0.0,
> 0.0, 0.0);
>GtkWidget *sw = gtk_scrolled_window_new (ADJ , ADJ);
> 
>//gtk_adjustment_set_value (ADJ, 1.2);
>g_print ("value %p is %f\n", ADJ, gtk_adjustment_get_value (ADJ));
> 
>GtkWidget *keyboard=gtk_grid_new();
>gtk_grid_attach(GTK_GRID(keyboard), label, 0, 0, 1, 1);
>gtk_container_add(GTK_CONTAINER(sw), keyboard);  
>gtk_container_add(GTK_CONTAINER(keyboard_window), sw);
> 
>//gtk_container_add(GTK_CONTAINER(keyboard_window), sw);
>//GtkWidget *keyboard=gtk_grid_new();
>//gtk_grid_attach(GTK_GRID(keyboard), label, 0, 0, 1, 1);  
>//gtk_container_add(GTK_CONTAINER(sw), keyboard);
> 
>gtk_widget_show_all(keyboard_window);
> 
>gtk_adjustment_set_value (ADJ, 100.0);
> 
>gtk_main();
> 
>return 0;  
>  }
> 
> 


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list