diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-04-25 16:32:07 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-04-25 19:52:57 +0000 |
commit | 2749b73eab8f40766ed08ed06771943107704f94 (patch) | |
tree | 1edf576255ee5b7fddad4cb5f82dac4b68eb73a9 /main/gnome-system-monitor/005-replace-gdk_drawable.patch | |
parent | d98256295edd37208538ecd0241d17eedf5fbeb0 (diff) | |
download | aports-2749b73eab8f40766ed08ed06771943107704f94.tar.bz2 aports-2749b73eab8f40766ed08ed06771943107704f94.tar.xz |
main/gnome-system-monitor: rebuild against glib-2.32
Diffstat (limited to 'main/gnome-system-monitor/005-replace-gdk_drawable.patch')
-rw-r--r-- | main/gnome-system-monitor/005-replace-gdk_drawable.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/main/gnome-system-monitor/005-replace-gdk_drawable.patch b/main/gnome-system-monitor/005-replace-gdk_drawable.patch new file mode 100644 index 0000000000..c70f2d2072 --- /dev/null +++ b/main/gnome-system-monitor/005-replace-gdk_drawable.patch @@ -0,0 +1,56 @@ +From ff00bed20c1740b619a487c76d2a7671dd435cc9 Mon Sep 17 00:00:00 2001 +From: Chris Kühl <chrisk@openismus.com> +Date: Thu, 27 Jan 2011 01:08:37 +0000 +Subject: Replaced use of gdk_drawable_get_size with gdk_window_get_[width|height] + +--- +diff --git a/src/gsm_color_button.c b/src/gsm_color_button.c +index 01f162e..ef7b3de 100644 +--- a/src/gsm_color_button.c ++++ b/src/gsm_color_button.c +@@ -287,7 +287,8 @@ render (GtkWidget * widget) + color->green = color->green + highlight_factor; + } + gdk_cairo_set_source_color (cr, color); +- gdk_drawable_get_size (gtk_widget_get_window (widget), &width, &height); ++ width = gdk_window_get_width (gtk_widget_get_window (widget)); ++ height = gdk_window_get_height(gtk_widget_get_window (widget)); + + switch (color_button->priv->type) + { +diff --git a/src/procman.cpp b/src/procman.cpp +index b5c0d0a..c9a5ac5 100644 +--- a/src/procman.cpp ++++ b/src/procman.cpp +@@ -548,25 +548,20 @@ void + procman_save_config (ProcData *data) + { + GConfClient *client = data->client; +- gint width, height; + + g_assert(data); + + procman_save_tree_state (data->client, data->tree, "/apps/procman/proctree"); + procman_save_tree_state (data->client, data->disk_list, "/apps/procman/disktreenew"); +- +- gdk_drawable_get_size (gtk_widget_get_window (data->app), &width, &height); +- data->config.width = width; +- data->config.height = height; +- ++ ++ data->config.width = gdk_window_get_width (gtk_widget_get_window (data->app)); ++ data->config.height = gdk_window_get_height(gtk_widget_get_window (data->app)); ++ + gconf_client_set_int (client, "/apps/procman/width", data->config.width, NULL); + gconf_client_set_int (client, "/apps/procman/height", data->config.height, NULL); + gconf_client_set_int (client, "/apps/procman/current_tab", data->config.current_tab, NULL); + + gconf_client_suggest_sync (client, NULL); +- +- +- + } + + static guint32 +-- +cgit v0.9 |