Skip to content

Commit

Permalink
[FreetuxTV] Remove warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
eric.beuque committed Feb 29, 2012
1 parent ff9bed9 commit a51395e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/freetuxtv-cellrenderer-recordingslist.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ freetuxtv_cellrenderer_recordingslist_render (GtkCellRenderer *cell,

{
FreetuxTVCellRendererRecordingsList *self = FREETUXTV_CELLRENDERER_RECORDINGSLIST (cell);
GtkStateType state;
gint width, height;
PangoLayout *layout;
gchar* szTmp;
Expand All @@ -236,12 +235,13 @@ freetuxtv_cellrenderer_recordingslist_render (GtkCellRenderer *cell,
freetuxtv_cellrenderer_recordingslist_get_size (cell, widget, cell_area,
NULL, NULL,
&width, &height);
#endif
GtkStateType state;
state = GTK_STATE_ACTIVE;
if ((flags & GTK_CELL_RENDERER_SELECTED) != 0){
state = GTK_STATE_SELECTED;
}
#endif

int cell_xpad;
int cell_ypad;
Expand Down Expand Up @@ -336,7 +336,7 @@ freetuxtv_cellrenderer_recordingslist_render (GtkCellRenderer *cell,

// Draw time
duration = (self->endTime - self->beginTime) / (G_USEC_PER_SEC * 60);
szTmp = g_strdup_printf(_("%lld min"), duration);
szTmp = g_strdup_printf(_("%ld min"), duration);
layout = gtk_widget_create_pango_layout (widget, szTmp);
pango_layout_set_ellipsize (layout, PANGO_ELLIPSIZE_END);

Expand Down

0 comments on commit a51395e

Please sign in to comment.