diff options
Diffstat (limited to 'src/gtkext')
| -rw-r--r-- | src/gtkext/gtkbinview-int.h | 6 | ||||
| -rw-r--r-- | src/gtkext/gtkbinview.c | 22 | ||||
| -rw-r--r-- | src/gtkext/gtkbinview.h | 29 | ||||
| -rw-r--r-- | src/gtkext/gtkgraphview.c | 2 | 
4 files changed, 28 insertions, 31 deletions
| diff --git a/src/gtkext/gtkbinview-int.h b/src/gtkext/gtkbinview-int.h index 2410915..cea40a1 100644 --- a/src/gtkext/gtkbinview-int.h +++ b/src/gtkext/gtkbinview-int.h @@ -34,7 +34,7 @@  /* Définit les lignes à associer à la représentation. */ -typedef void (* set_rendering_lines_fc) (GtkBinview *, GRenderingLine *, GRenderingLine *); +typedef void (* set_rendering_lines_fc) (GtkBinView *, GRenderingLine *, GRenderingLine *);  /* Réagit à la sélection externe d'une adresse. */  typedef void (* define_main_address_fc) (GtkBinView *, vmpa_t); @@ -43,7 +43,7 @@ typedef void (* define_main_address_fc) (GtkBinView *, vmpa_t);  typedef bool (* get_addr_coordinates_fc) (const GtkBinView *, vmpa_t, gint *, gint *); -struct _GtkBinview +struct _GtkBinView  {      GtkFixed parent;                        /* A laisser en premier        */ @@ -62,7 +62,7 @@ struct _GtkBinview  }; -struct _GtkBinviewClass +struct _GtkBinViewClass  {      GtkFixedClass parent;                   /* A laisser en premier        */ diff --git a/src/gtkext/gtkbinview.c b/src/gtkext/gtkbinview.c index aa231f2..f0470bc 100644 --- a/src/gtkext/gtkbinview.c +++ b/src/gtkext/gtkbinview.c @@ -40,7 +40,7 @@ static gboolean gtk_bin_view_expose(GtkBinView *, GdkEventExpose *);  /* Détermine le type du composant d'affichage des morceaux. */ -G_DEFINE_TYPE(GtkBinview, gtk_binview, GTK_TYPE_FIXED) +G_DEFINE_TYPE(GtkBinView, gtk_binview, GTK_TYPE_FIXED) @@ -59,7 +59,7 @@ G_DEFINE_TYPE(GtkBinview, gtk_binview, GTK_TYPE_FIXED)  *                                                                             *  ******************************************************************************/ -static void gtk_binview_class_init(GtkBinviewClass *class) +static void gtk_binview_class_init(GtkBinViewClass *class)  {      GtkWidgetClass *widget_class;           /* Classe de haut niveau       */ @@ -83,7 +83,7 @@ static void gtk_binview_class_init(GtkBinviewClass *class)  *                                                                             *  ******************************************************************************/ -static void gtk_binview_init(GtkBinview *view) +static void gtk_binview_init(GtkBinView *view)  {      gtk_fixed_set_has_window(GTK_FIXED(view), TRUE); @@ -211,7 +211,7 @@ static gboolean gtk_bin_view_expose(GtkBinView *view, GdkEventExpose *event)  *                                                                             *  ******************************************************************************/ -void gtk_bin_view_show_border(GtkBinview *view, bool show) +void gtk_bin_view_show_border(GtkBinView *view, bool show)  {      view->show_border = show; @@ -235,7 +235,7 @@ void gtk_bin_view_show_border(GtkBinview *view, bool show)  *                                                                             *  ******************************************************************************/ -void gtk_bin_view_set_rendering_lines(GtkBinview *view, openida_binary *binary, GRenderingLine *lines, GRenderingLine *last) +void gtk_bin_view_set_rendering_lines(GtkBinView *view, openida_binary *binary, GRenderingLine *lines, GRenderingLine *last)  {      view->binary = binary; @@ -259,7 +259,7 @@ void gtk_bin_view_set_rendering_lines(GtkBinview *view, openida_binary *binary,  *                                                                             *  ******************************************************************************/ -GRenderingLine *gtk_bin_view_get_lines(const GtkBinview *view) +GRenderingLine *gtk_bin_view_get_lines(const GtkBinView *view)  {      return view->lines; @@ -278,7 +278,7 @@ GRenderingLine *gtk_bin_view_get_lines(const GtkBinview *view)  *                                                                             *  ******************************************************************************/ -GRenderingLine *gtk_bin_view_get_last_line(const GtkBinview *view) +GRenderingLine *gtk_bin_view_get_last_line(const GtkBinView *view)  {      return view->last;  /* FIXME last == NULL */ @@ -309,7 +309,7 @@ GRenderingLine *gtk_bin_view_get_last_line(const GtkBinview *view)  *                                                                             *  ******************************************************************************/ -void gtk_binview_show_vaddress(GtkBinview *binview, gboolean show) +void gtk_binview_show_vaddress(GtkBinView *binview, gboolean show)  {      GList *list;                            /* Ensemble des enfants        */      GList *iter;                            /* Boucle de parcours          */ @@ -345,7 +345,7 @@ void gtk_binview_show_vaddress(GtkBinview *binview, gboolean show)  *                                                                             *  ******************************************************************************/ -void gtk_binview_show_code(GtkBinview *binview, gboolean show) +void gtk_binview_show_code(GtkBinView *binview, gboolean show)  {      GList *list;                            /* Ensemble des enfants        */      GList *iter;                            /* Boucle de parcours          */ @@ -378,7 +378,7 @@ void gtk_binview_show_code(GtkBinview *binview, gboolean show)  *                                                                             *  ******************************************************************************/ -bool gtk_bin_view_contain_address(const GtkBinview *view, vmpa_t addr) +bool gtk_bin_view_contain_address(const GtkBinView *view, vmpa_t addr)  {      gint dummy_x;                           /* Abscisse pour l'appel       */      gint dummy_y;                           /* Ordonnée pour l'appel       */ @@ -401,7 +401,7 @@ bool gtk_bin_view_contain_address(const GtkBinview *view, vmpa_t addr)  *                                                                             *  ******************************************************************************/ -void gtk_bin_view_scroll_to_address(GtkBinview *view, vmpa_t addr) +void gtk_bin_view_scroll_to_address(GtkBinView *view, vmpa_t addr)  {      gint x;                                 /* Abscisse à garantir         */      gint y;                                 /* Ordonnée à garantir         */ diff --git a/src/gtkext/gtkbinview.h b/src/gtkext/gtkbinview.h index 241669c..e443161 100644 --- a/src/gtkext/gtkbinview.h +++ b/src/gtkext/gtkbinview.h @@ -33,18 +33,15 @@  #define GTK_TYPE_BIN_VIEW                  (gtk_binview_get_type()) -#define GTK_BIN_VIEW(obj)                  (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_BIN_VIEW, GtkBinview)) -#define GTK_BIN_VIEW_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_BIN_VIEW, GtkBinviewClass)) +#define GTK_BIN_VIEW(obj)                  (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_BIN_VIEW, GtkBinView)) +#define GTK_BIN_VIEW_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_BIN_VIEW, GtkBinViewClass))  #define GTK_IS_BIN_VIEW(obj)               (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_BIN_VIEW))  #define GTK_IS_BIN_VIEW_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_BIN_VIEW)) -#define GTK_BIN_VIEW_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_BIN_VIEW, GtkBinviewClass)) +#define GTK_BIN_VIEW_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_BIN_VIEW, GtkBinViewClass)) -typedef struct _GtkBinview        GtkBinview; -typedef struct _GtkBinviewClass   GtkBinviewClass; - -typedef struct _GtkBinview        GtkBinView; -typedef struct _GtkBinviewClass   GtkBinViewClass; +typedef struct _GtkBinView        GtkBinView; +typedef struct _GtkBinViewClass   GtkBinViewClass; @@ -55,36 +52,36 @@ GType gtk_binview_get_type(void);  GtkWidget* gtk_binview_new(void);  /* Définit si une bordure est à afficher. */ -void gtk_bin_view_show_border(GtkBinview *, bool); +void gtk_bin_view_show_border(GtkBinView *, bool);  /* Définit les lignes à associer à la représentation. */ -void gtk_bin_view_set_rendering_lines(GtkBinview *, openida_binary *, GRenderingLine *, GRenderingLine *); +void gtk_bin_view_set_rendering_lines(GtkBinView *, openida_binary *, GRenderingLine *, GRenderingLine *);  /* Fournit la liste des lignes associées à la représentation. */ -GRenderingLine *gtk_bin_view_get_lines(const GtkBinview *); +GRenderingLine *gtk_bin_view_get_lines(const GtkBinView *);  /* Fournit la dernière ligne associée à la représentation. */ -GRenderingLine *gtk_bin_view_get_last_line(const GtkBinview *); +GRenderingLine *gtk_bin_view_get_last_line(const GtkBinView *);  /* Choisit d'afficher les adresses virtuelles ou non. */ -void gtk_binview_show_vaddress(GtkBinview *, gboolean); +void gtk_binview_show_vaddress(GtkBinView *, gboolean);  /* Choisit d'afficher le code brut ou non. */ -void gtk_binview_show_code(GtkBinview *, gboolean); +void gtk_binview_show_code(GtkBinView *, gboolean);  /* Indique si la vue contient une addrese donnée. */ -bool gtk_bin_view_contain_address(const GtkBinview *, vmpa_t); +bool gtk_bin_view_contain_address(const GtkBinView *, vmpa_t);  /* S'assure qu'une adresse donnée est visible à l'écran. */ -void gtk_bin_view_scroll_to_address(GtkBinview *, vmpa_t); +void gtk_bin_view_scroll_to_address(GtkBinView *, vmpa_t); diff --git a/src/gtkext/gtkgraphview.c b/src/gtkext/gtkgraphview.c index 0db03f0..0332557 100644 --- a/src/gtkext/gtkgraphview.c +++ b/src/gtkext/gtkgraphview.c @@ -433,7 +433,7 @@ static GtkBinView **gtk_graph_view_load_nodes(openida_binary *binary, GRendering          if (begin == NULL) begin = iter;          end = iter; -        if (g_rendering_line_has_destination(iter)) +        if (g_rendering_line_has_destinations(iter))          {              result = (GtkBinView **)realloc(result, ++(*count) * sizeof(GtkBinView *)); | 
