Changeset 759


Ignore:
Timestamp:
Aug 13, 2006, 12:22:05 AM (15 years ago)
Author:
joshe
Message:

Replace the old progress cell renderer with a new one for silly license reasons.

Location:
trunk
Files:
2 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r574 r759  
    4545#include "tr_backend.h"
    4646#include "tr_torrent.h"
    47 #include "tr_cell_renderer_torrent.h"
     47#include "tr_cell_renderer_progress.h"
    4848#include "transmission.h"
    4949#include "util.h"
     
    457457  gtk_tree_view_append_column(GTK_TREE_VIEW(view), col);
    458458
    459   progrend = tr_cell_renderer_torrent_new();
     459  progrend = tr_cell_renderer_progress_new();
    460460  /* this string is only used to determing the size of the progress bar */
    461461  str = g_markup_printf_escaped("<big>%s</big>", _("  fnord    fnord  "));
    462   g_object_set(progrend, "label", str, NULL);
     462  g_object_set(progrend, "bar-sizing", str, NULL);
    463463  g_free(str);
    464464  col = gtk_tree_view_column_new_with_attributes(_("Progress"), progrend, NULL);
     
    651651stylekludge(GObject *obj, GParamSpec *spec, gpointer gdata) {
    652652  if(0 == strcmp("style", spec->name)) {
    653     tr_cell_renderer_torrent_reset_style(TR_CELL_RENDERER_TORRENT(gdata));
     653    tr_cell_renderer_progress_reset_style(TR_CELL_RENDERER_PROGRESS(gdata));
    654654    gtk_widget_queue_draw(GTK_WIDGET(obj));
    655655  }
     
    767767  }
    768768  marked = g_markup_printf_escaped("<small>%s</small>", str);
    769   g_object_set(rend, "text", str, "value", prog, NULL);
     769  g_object_set(rend, "markup", str, "progress", prog, NULL);
    770770  g_free(dlstr);
    771771  g_free(ulstr);
  • trunk/mk/gtk.mk

    r265 r759  
    55
    66SRCS = conf.c dialogs.c io.c ipc.c main.c tr_backend.c tr_torrent.c \
    7         tr_cell_renderer_torrent.c util.c
     7        tr_cell_renderer_progress.c util.c
    88OBJS = $(SRCS:%.c=%.o)
    99
Note: See TracChangeset for help on using the changeset viewer.