Changeset 70


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

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

Location:
trunk/gtk
Files:
2 edited
4 moved

Legend:

Unmodified
Added
Removed
  • trunk/gtk/Jamfile

    r11 r70  
    11SubDir TOP gtk ;
    22
    3 GTK_SRC = conf.c main.c prefs.c util.c gtkcellrenderertorrent.c ;
     3GTK_SRC = conf.c dialogs.c main.c trcellrenderertorrent.c util.c ;
    44
    55Main          transmission-gtk   : $(GTK_SRC) ;
  • trunk/gtk/dialogs.c

    r69 r70  
    3333
    3434#include "conf.h"
    35 #include "prefs.h"
     35#include "dialogs.h"
    3636#include "transmission.h"
    3737#include "util.h"
  • trunk/gtk/main.c

    r51 r70  
    3737
    3838#include "conf.h"
    39 #include "gtkcellrenderertorrent.h"
    40 #include "prefs.h"
     39#include "dialogs.h"
    4140#include "transmission.h"
     41#include "trcellrenderertorrent.h"
    4242#include "util.h"
    4343
     
    467467  gtk_tree_view_append_column(GTK_TREE_VIEW(view), col);
    468468
    469   progrend = gtk_cell_renderer_torrent_new();
     469  progrend = tr_cell_renderer_torrent_new();
    470470  g_object_set(progrend, "label", "<big>  fnord    fnord  </big>", NULL);
    471471  col = gtk_tree_view_column_new_with_attributes("Progress", progrend, NULL);
     
    494494stylekludge(GObject *obj, GParamSpec *spec, gpointer gdata) {
    495495  if(0 == strcmp("style", spec->name)) {
    496     gtk_cell_renderer_torrent_reset_style(GTK_CELL_RENDERER_TORRENT(gdata));
     496    tr_cell_renderer_torrent_reset_style(TR_CELL_RENDERER_TORRENT(gdata));
    497497    gtk_widget_queue_draw(GTK_WIDGET(obj));
    498498  }
  • 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;
  • trunk/gtk/trcellrenderertorrent.h

    r69 r70  
    1 /* gtkcellrenderertorrent.h
     1/* trcellrenderertorrent.h
    22 * Copyright (C) 2002 Naba Kumar <kh_naba@users.sourceforge.net>
    33 * modified by Jörgen Scheibengruber <mfcn@gmx.de>
     
    2525 */
    2626
    27 #ifndef __GTK_CELL_RENDERER_TORRENT_H__
    28 #define __GTK_CELL_RENDERER_TORRENT_H__
     27#ifndef __TR_CELL_RENDERER_TORRENT_H__
     28#define __TR_CELL_RENDERER_TORRENT_H__
    2929
    3030#include <gtk/gtkcellrenderer.h>
     
    3232G_BEGIN_DECLS
    3333
    34 #define GTK_TYPE_CELL_RENDERER_TORRENT (gtk_cell_renderer_torrent_get_type ())
    35 #define GTK_CELL_RENDERER_TORRENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_TORRENT, GtkCellRendererTorrent))
    36 #define GTK_CELL_RENDERER_TORRENT_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_TORRENT, GtkCellRendererTorrentClass))
     34#define GTK_TYPE_CELL_RENDERER_TORRENT (tr_cell_renderer_torrent_get_type ())
     35#define TR_CELL_RENDERER_TORRENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_TORRENT, TrCellRendererTorrent))
     36#define TR_CELL_RENDERER_TORRENT_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_TORRENT, TrCellRendererTorrentClass))
    3737#define GTK_IS_CELL_RENDERER_TORRENT(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_TORRENT))
    3838#define GTK_IS_CELL_RENDERER_TORRENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_TORRENT))
    39 #define GTK_CELL_RENDERER_TORRENT_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_TORRENT, GtkCellRendererTorrentClass))
     39#define TR_CELL_RENDERER_TORRENT_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_TORRENT, TrCellRendererTorrentClass))
    4040
    41 typedef struct _GtkCellRendererTorrent         GtkCellRendererTorrent;
    42 typedef struct _GtkCellRendererTorrentClass    GtkCellRendererTorrentClass;
    43 typedef struct _GtkCellRendererTorrentPrivate  GtkCellRendererTorrentPrivate;
     41typedef struct _TrCellRendererTorrent         TrCellRendererTorrent;
     42typedef struct _TrCellRendererTorrentClass    TrCellRendererTorrentClass;
     43typedef struct _TrCellRendererTorrentPrivate  TrCellRendererTorrentPrivate;
    4444
    45 struct _GtkCellRendererTorrent
     45struct _TrCellRendererTorrent
    4646{
    4747  GtkCellRenderer parent_instance;
    4848 
    4949  /*< private >*/
    50   GtkCellRendererTorrentPrivate *priv;
     50  TrCellRendererTorrentPrivate *priv;
    5151};
    5252
    53 struct _GtkCellRendererTorrentClass
     53struct _TrCellRendererTorrentClass
    5454{
    5555  GtkCellRendererClass parent_class;
     
    6262};
    6363
    64 GType            gtk_cell_renderer_torrent_get_type (void) G_GNUC_CONST;
    65 GtkCellRenderer* gtk_cell_renderer_torrent_new      (void);
    66 void gtk_cell_renderer_torrent_reset_style(GtkCellRendererTorrent *);
     64GType            tr_cell_renderer_torrent_get_type (void) G_GNUC_CONST;
     65GtkCellRenderer* tr_cell_renderer_torrent_new      (void);
     66void tr_cell_renderer_torrent_reset_style(TrCellRendererTorrent *);
    6767
    6868G_END_DECLS
    6969
    70 #endif  /* __GTK_CELL_RENDERER_TORRENT_H__ */
     70#endif  /* __TR_CELL_RENDERER_TORRENT_H__ */
Note: See TracChangeset for help on using the changeset viewer.