Remove further deprecated GTK+ API usage.
authorAlexander Koenig <alex@lisas.de>
Sat, 14 May 2016 22:12:47 +0000 (00:12 +0200)
committerAlexander Koenig <alex@lisas.de>
Sat, 14 May 2016 22:12:47 +0000 (00:12 +0200)
src/tX_dial.c
src/tX_flash.c
src/tX_mastergui.cc
src/tX_ui_callbacks.cc
src/tX_widget.c

index b063f43d51c385edf33e719c4a27621b5f8904dc..f9ec8550b7766669ac6693d9d9eb311618fb5737 100644 (file)
@@ -222,7 +222,6 @@ static void gtk_tx_dial_realize (GtkWidget *widget)
        gtk_widget_set_window(widget, gdk_window_new(gtk_widget_get_parent_window(widget), &attributes, attributes_mask));
        
        gdk_window_set_user_data (gtk_widget_get_window(widget), widget);
-       gtk_style_context_set_background(gtk_widget_get_style_context(widget), gtk_widget_get_window(widget));
 }
 
 static void gtk_tx_dial_get_preferred_width (GtkWidget *widget, gint *minimal_width, gint *natural_width) {
index 8320728f52d36c477a8cf4c8eb73dc2a1fbd73e5..5dfad601917fd69da95c87c5ea9aa71f05d1d3f2 100644 (file)
@@ -197,7 +197,6 @@ static void gtk_tx_flash_realize (GtkWidget *widget)
        gdk_window_set_user_data (gtk_widget_get_window(widget), widget);
        
        context = gtk_widget_get_style_context(widget);
-       gtk_style_context_set_background(context, gtk_widget_get_window(widget));
        
        if (tx_flash->surface) {
                cairo_surface_destroy (tx_flash->surface);
index 8efc7eef9a320593d38c41ae60ef0f4c0c1f25d0..e916c013ba0f078e4066c6b38eceea48c8afb1ef 100644 (file)
@@ -1764,18 +1764,19 @@ tX_cursor::cursor_shape tX_cursor::current_shape=tX_cursor::DEFAULT_CURSOR;
 
 void tX_cursor::set_cursor(cursor_shape shape)
 {
+       GdkDisplay *display = gdk_window_get_display(gtk_widget_get_window(main_window));
        switch (shape) {
                case DEFAULT_CURSOR:
                        cursors[shape]=NULL;
                        break;
                
                case WAIT_CURSOR:
-                       if (!cursors[shape]) cursors[shape]=gdk_cursor_new(GDK_WATCH);
+                       if (!cursors[shape]) cursors[shape]=gdk_cursor_new_for_display(display, GDK_WATCH);
                        break;
                
                case WAIT_A_SECOND_CURSOR:
                        /* FIXME: What's that short-time wait cursor's id? */
-                       if (!cursors[shape]) cursors[shape]=gdk_cursor_new(GDK_WATCH);
+                       if (!cursors[shape]) cursors[shape]=gdk_cursor_new_for_display(display, GDK_WATCH);
                        break;
                
                default:
index c774b7e9dd75de82b44e9f4965ef726b8cffbf43..5f0f9a2138193f6dc3bab6e23c09942828dc137f 100644 (file)
@@ -73,7 +73,6 @@ on_alsa_buffer_time_value_changed      (GtkRange        *range,
 
 
        gtk_adjustment_set_upper(period_time, gtk_adjustment_get_value(buffer_time));
-       gtk_adjustment_changed(period_time);
 }
 
 void
index 9527cfe12d313f2281adbfc4396ea5fc7093fd8c..87ebcddc19d3ba82403e89369e14199d151d8d44 100644 (file)
@@ -225,8 +225,6 @@ static void gtk_tx_realize(GtkWidget * widget) {
 
        gdk_window_set_user_data(gtk_widget_get_window(widget), widget);
 
-       gtk_style_context_set_background(gtk_widget_get_style_context(widget), gtk_widget_get_window(widget));
-       
        if (tx->surface) {
                cairo_surface_destroy (tx->surface);
        }