Changeset 12220


Ignore:
Timestamp:
Mar 24, 2011, 6:24:21 PM (11 years ago)
Author:
jordan
Message:

(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

Location:
trunk/gtk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/torrent-cell-renderer.c

    r12068 r12220  
    3636#define COMPACT_ICON_SIZE GTK_ICON_SIZE_MENU
    3737#define FULL_ICON_SIZE GTK_ICON_SIZE_DND
     38
     39/***
     40****
     41***/
     42
     43/* backwards-compatible wrapper around gtk_cell_renderer_get_padding() */
     44static void
     45gtr_cell_renderer_get_padding( GtkCellRenderer * cell, gint * xpad, gint * ypad )
     46{
     47#if GTK_CHECK_VERSION( 2,18,0 )
     48    gtk_cell_renderer_get_padding( cell, xpad, ypad );
     49#else
     50    if( xpad != NULL ) *xpad = cell->xpad;
     51    if( ypad != NULL ) *ypad = cell->ypad;
     52#endif
     53}
    3854
    3955/***
  • trunk/gtk/util.c

    r12219 r12220  
    739739}
    740740
    741 void
    742 gtr_cell_renderer_get_padding( GtkCellRenderer * cell, gint * xpad, gint * ypad )
    743 {
    744 #if GTK_CHECK_VERSION( 2,18,0 )
    745     gtk_cell_renderer_get_padding( cell, xpad, ypad );
    746 #else
    747     if( xpad != NULL ) *xpad = cell->xpad;
    748     if( ypad != NULL ) *ypad = cell->ypad;
    749 #endif
    750 }
    751 
    752741static GtkWidget*
    753742gtr_dialog_get_content_area( GtkDialog * dialog )
  • trunk/gtk/util.h

    r12219 r12220  
    137137void gtr_widget_set_visible( GtkWidget *, gboolean );
    138138
    139 /* backwards-compatible wrapper around gtk_cell_renderer_get_padding() */
    140 void gtr_cell_renderer_get_padding( GtkCellRenderer *, gint * xpad, gint * ypad );
    141 
    142139/* backwards-compatible wrapper around g_object_ref_sink() */
    143140gpointer gtr_object_ref_sink( gpointer object );
Note: See TracChangeset for help on using the changeset viewer.