diff --git a/gtk/torrent-cell-renderer.c b/gtk/torrent-cell-renderer.c index 3b5b35134..895df2985 100644 --- a/gtk/torrent-cell-renderer.c +++ b/gtk/torrent-cell-renderer.c @@ -40,6 +40,22 @@ enum **** ***/ +/* backwards-compatible wrapper around gtk_cell_renderer_get_padding() */ +static void +gtr_cell_renderer_get_padding( GtkCellRenderer * cell, gint * xpad, gint * ypad ) +{ +#if GTK_CHECK_VERSION( 2,18,0 ) + gtk_cell_renderer_get_padding( cell, xpad, ypad ); +#else + if( xpad != NULL ) *xpad = cell->xpad; + if( ypad != NULL ) *ypad = cell->ypad; +#endif +} + +/*** +**** +***/ + static char* getProgressString( const tr_torrent * tor, const tr_info * info, diff --git a/gtk/util.c b/gtk/util.c index 7b62bb704..d24f002d1 100644 --- a/gtk/util.c +++ b/gtk/util.c @@ -738,17 +738,6 @@ gtr_widget_set_visible( GtkWidget * w, gboolean b ) #endif } -void -gtr_cell_renderer_get_padding( GtkCellRenderer * cell, gint * xpad, gint * ypad ) -{ -#if GTK_CHECK_VERSION( 2,18,0 ) - gtk_cell_renderer_get_padding( cell, xpad, ypad ); -#else - if( xpad != NULL ) *xpad = cell->xpad; - if( ypad != NULL ) *ypad = cell->ypad; -#endif -} - static GtkWidget* gtr_dialog_get_content_area( GtkDialog * dialog ) { diff --git a/gtk/util.h b/gtk/util.h index 7c0f56830..feff4d3e4 100644 --- a/gtk/util.h +++ b/gtk/util.h @@ -136,9 +136,6 @@ gboolean gtr_widget_get_realized( GtkWidget * w ); /* backwards-compatible wrapper around gtk_widget_set_visible() */ void gtr_widget_set_visible( GtkWidget *, gboolean ); -/* backwards-compatible wrapper around gtk_cell_renderer_get_padding() */ -void gtr_cell_renderer_get_padding( GtkCellRenderer *, gint * xpad, gint * ypad ); - /* backwards-compatible wrapper around g_object_ref_sink() */ gpointer gtr_object_ref_sink( gpointer object );