1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-04 10:38:13 +00:00

(trunk gtk) gtr_cell_renderer_get_padding() is only used in one place, so make it a private function there instead of leaving it public in util.h

This commit is contained in:
Jordan Lee 2011-03-24 18:24:21 +00:00
parent 5417711cd4
commit e46d0a72ba
3 changed files with 16 additions and 14 deletions

View file

@ -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* static char*
getProgressString( const tr_torrent * tor, getProgressString( const tr_torrent * tor,
const tr_info * info, const tr_info * info,

View file

@ -738,17 +738,6 @@ gtr_widget_set_visible( GtkWidget * w, gboolean b )
#endif #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* static GtkWidget*
gtr_dialog_get_content_area( GtkDialog * dialog ) gtr_dialog_get_content_area( GtkDialog * dialog )
{ {

View file

@ -136,9 +136,6 @@ gboolean gtr_widget_get_realized( GtkWidget * w );
/* backwards-compatible wrapper around gtk_widget_set_visible() */ /* backwards-compatible wrapper around gtk_widget_set_visible() */
void gtr_widget_set_visible( GtkWidget *, gboolean ); 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() */ /* backwards-compatible wrapper around g_object_ref_sink() */
gpointer gtr_object_ref_sink( gpointer object ); gpointer gtr_object_ref_sink( gpointer object );