Ignore:
Timestamp:
Jan 30, 2006, 4:05:18 PM (16 years ago)
Author:
joshe
Message:

Rename a few files now that we're using subversion and it's easy.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/gtk/trcellrenderertorrent.c

    r69 r70  
    1 /* gtkcellrenderertorrent.c
     1/* trcellrenderertorrent.c
    22 * Copyright (C) 2002 Naba Kumar <kh_naba@users.sourceforge.net>
    33 * heavily modified by Jörgen Scheibengruber <mfcn@gmx.de>
     
    2929#include <gtk/gtk.h>
    3030
    31 #include "gtkcellrenderertorrent.h"
     31#include "trcellrenderertorrent.h"
    3232#include "util.h"
    3333
    3434enum { PROP_0, PROP_VALUE, PROP_TEXT, PROP_LABEL };
    3535
    36 struct _GtkCellRendererTorrentPrivate {
     36struct _TrCellRendererTorrentPrivate {
    3737  gfloat value;
    3838  gchar *text;
     
    5757
    5858     
    59 G_DEFINE_TYPE(GtkCellRendererTorrent, gtk_cell_renderer_torrent, GTK_TYPE_CELL_RENDERER);
    60 
    61 static void
    62 gtk_cell_renderer_torrent_class_init (GtkCellRendererTorrentClass *klass) {
     59G_DEFINE_TYPE(TrCellRendererTorrent, tr_cell_renderer_torrent, GTK_TYPE_CELL_RENDERER);
     60
     61static void
     62tr_cell_renderer_torrent_class_init (TrCellRendererTorrentClass *klass) {
    6363  GObjectClass *object_class = G_OBJECT_CLASS (klass);
    6464  GtkCellRendererClass *cell_class = GTK_CELL_RENDERER_CLASS (klass);
     
    8888
    8989  g_type_class_add_private (object_class,
    90                             sizeof (GtkCellRendererTorrentPrivate));
    91 }
    92 
    93 static void
    94 gtk_cell_renderer_torrent_init(GtkCellRendererTorrent *tcell) {
     90                            sizeof (TrCellRendererTorrentPrivate));
     91}
     92
     93static void
     94tr_cell_renderer_torrent_init(TrCellRendererTorrent *tcell) {
    9595  tcell->priv = G_TYPE_INSTANCE_GET_PRIVATE(
    96     tcell, GTK_TYPE_CELL_RENDERER_TORRENT, GtkCellRendererTorrentPrivate);
     96    tcell, GTK_TYPE_CELL_RENDERER_TORRENT, TrCellRendererTorrentPrivate);
    9797  tcell->priv->value = 0.0;
    9898  tcell->priv->text = g_strdup("");
     
    104104
    105105GtkCellRenderer*
    106 gtk_cell_renderer_torrent_new(void) {
     106tr_cell_renderer_torrent_new(void) {
    107107  return g_object_new (GTK_TYPE_CELL_RENDERER_TORRENT, NULL);
    108108}
     
    110110/* XXX need to do this better somehow */
    111111void
    112 gtk_cell_renderer_torrent_reset_style(GtkCellRendererTorrent *tor) {
     112tr_cell_renderer_torrent_reset_style(TrCellRendererTorrent *tor) {
    113113  if(NULL != tor->priv->style) {
    114114    gtk_style_detach(tor->priv->style);
     
    120120static void
    121121finalize(GObject *object) {
    122   GtkCellRendererTorrent *tcell = GTK_CELL_RENDERER_TORRENT(object);
     122  TrCellRendererTorrent *tcell = TR_CELL_RENDERER_TORRENT(object);
    123123
    124124  g_free(tcell->priv->text);
     
    134134  }
    135135
    136   G_OBJECT_CLASS (gtk_cell_renderer_torrent_parent_class)->finalize(object);
     136  G_OBJECT_CLASS (tr_cell_renderer_torrent_parent_class)->finalize(object);
    137137}
    138138
    139139static void
    140140get_property(GObject *object, guint id, GValue *value, GParamSpec *pspec) {
    141   GtkCellRendererTorrent *tcell = GTK_CELL_RENDERER_TORRENT (object);
     141  TrCellRendererTorrent *tcell = TR_CELL_RENDERER_TORRENT (object);
    142142 
    143143  switch (id) {
     
    158158static void
    159159set_property(GObject *obj, guint id, const GValue *value, GParamSpec *spec) {
    160   GtkCellRendererTorrent *tcell = GTK_CELL_RENDERER_TORRENT(obj);
     160  TrCellRendererTorrent *tcell = TR_CELL_RENDERER_TORRENT(obj);
    161161  gchar **prop = NULL;
    162162  PangoAttrList **attrs = NULL;
     
    206206get_size(GtkCellRenderer *cell, GtkWidget *widget, GdkRectangle *area,
    207207         gint *xoff, gint *yoff, gint *width, gint *height) {
    208   GtkCellRendererTorrent *tcell = GTK_CELL_RENDERER_TORRENT(cell);
     208  TrCellRendererTorrent *tcell = TR_CELL_RENDERER_TORRENT(cell);
    209209  /* XXX do I have to unref the context? */
    210210  PangoLayout *layout = pango_layout_new(gtk_widget_get_pango_context(widget));
     
    241241       GdkRectangle *bg SHUTUP, GdkRectangle *area, GdkRectangle *exp SHUTUP,
    242242       guint flags) {
    243   GtkCellRendererTorrent *tcell = GTK_CELL_RENDERER_TORRENT(cell);
     243  TrCellRendererTorrent *tcell = TR_CELL_RENDERER_TORRENT(cell);
    244244  PangoContext *ctx = gtk_widget_get_pango_context(widget);
    245245  PangoLayout *llayout, *tlayout;
Note: See TracChangeset for help on using the changeset viewer.