mirror of
https://github.com/transmission/transmission
synced 2025-03-04 02:28:03 +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:
parent
5417711cd4
commit
e46d0a72ba
3 changed files with 16 additions and 14 deletions
|
@ -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,
|
||||
|
|
11
gtk/util.c
11
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 )
|
||||
{
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue