summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-05-11 12:51:29 +0200
committerraveit65 <[email protected]>2020-06-07 16:03:52 +0200
commita50040156b308e4a4836b9bb13fb7cff4cf6f873 (patch)
treec112d63d9cb7d3fda1ecadf82d97462920cd7f28
parent8efa3082a11564a0891868821e58386e972b019e (diff)
downloadmate-control-center-a50040156b308e4a4836b9bb13fb7cff4cf6f873.tar.bz2
mate-control-center-a50040156b308e4a4836b9bb13fb7cff4cf6f873.tar.xz
shell-window: Remove shell_window_paint_window
-rw-r--r--libslab/shell-window.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/libslab/shell-window.c b/libslab/shell-window.c
index 44011b83..2b578391 100644
--- a/libslab/shell-window.c
+++ b/libslab/shell-window.c
@@ -28,8 +28,6 @@
static void shell_window_handle_size_request (GtkWidget * widget, GtkRequisition * requisition,
AppShellData * data);
-gboolean shell_window_paint_window (GtkWidget * widget, cairo_t * cr, gpointer data);
-
#define SHELL_WINDOW_BORDER_WIDTH 6
G_DEFINE_TYPE (ShellWindow, shell_window, GTK_TYPE_FRAME);
@@ -58,9 +56,6 @@ shell_window_new (AppShellData * app_data)
window->_hbox = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0));
gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (window->_hbox));
- g_signal_connect (G_OBJECT (window), "draw", G_CALLBACK (shell_window_paint_window),
- NULL);
-
/* FIXME add some replacement for GTK+3, or just remove this code? */
#if 0
window->resize_handler_id =
@@ -125,29 +120,3 @@ shell_window_set_contents (ShellWindow * shell, GtkWidget * left_pane, GtkWidget
gtk_container_add (GTK_CONTAINER (shell->_left_pane), left_pane);
gtk_container_add (GTK_CONTAINER (shell->_right_pane), right_pane);
}
-
-gboolean
-shell_window_paint_window (GtkWidget * widget, cairo_t * cr, gpointer data)
-{
- GtkWidget *left_pane;
- GtkAllocation allocation;
- GtkStyleContext *context;
-
- left_pane = SHELL_WINDOW (widget)->_left_pane;
-
- gtk_widget_get_allocation (left_pane, &allocation);
-
- /* draw left pane background */
- context = gtk_widget_get_style_context (widget);
- gtk_style_context_save (context);
- cairo_save (cr);
- gtk_render_background (context, cr,
- (gdouble) allocation.x,
- (gdouble) allocation.y,
- (gdouble) allocation.width,
- (gdouble) allocation.height);
- cairo_restore (cr);
- gtk_style_context_restore (context);
-
- return FALSE;
-}