[geany/geany-plugins] e6ce0d: debugger: Only initialize arrays with load-time computable values
Colomban Wendling
git-noreply at xxxxx
Fri Jun 8 16:37:19 UTC 2012
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Fri, 08 Jun 2012 16:37:19
Commit: e6ce0d32080ecb2e32d80b39cbc91845ab753bce
https://github.com/geany/geany-plugins/commit/e6ce0d32080ecb2e32d80b39cbc91845ab753bce
Log Message:
-----------
debugger: Only initialize arrays with load-time computable values
Modified Paths:
--------------
debugger/src/cell_renderers/cellrendererbreakicon.c
debugger/src/cell_renderers/cellrendererframeicon.c
Modified: debugger/src/cell_renderers/cellrendererbreakicon.c
9 files changed, 7 insertions(+), 2 deletions(-)
===================================================================
@@ -295,9 +295,14 @@ static void cell_renderer_break_icon_init (CellRendererBreakIcon *cell)
static void cell_renderer_break_icon_finalize (GObject *object)
{
CellRendererBreakIcon *cell = (CellRendererBreakIcon*)object;
-
- GdkPixbuf *pixbufs[] = { cell->pixbuf_enabled, cell->pixbuf_disabled, cell->pixbuf_conditional, cell->pixbuf_file };
+ GdkPixbuf *pixbufs[4];
int i;
+
+ pixbufs[0] = cell->pixbuf_enabled;
+ pixbufs[1] = cell->pixbuf_disabled;
+ pixbufs[2] = cell->pixbuf_conditional;
+ pixbufs[3] = cell->pixbuf_file;
+
for(i = 0; i < 4; i++)
{
if (pixbufs[i])
Modified: debugger/src/cell_renderers/cellrendererframeicon.c
7 files changed, 5 insertions(+), 2 deletions(-)
===================================================================
@@ -237,9 +237,12 @@ static void cell_renderer_frame_icon_init (CellRendererFrameIcon *cell)
static void cell_renderer_frame_icon_finalize (GObject *object)
{
CellRendererFrameIcon *cell = (CellRendererFrameIcon*)object;
-
- GdkPixbuf *pixbufs[] = { cell->pixbuf_active, cell->pixbuf_highlighted };
+ GdkPixbuf *pixbufs[2];
int i;
+
+ pixbufs[0] = cell->pixbuf_active;
+ pixbufs[1] = cell->pixbuf_highlighted;
+
for(i = 0; i < 2; i++)
{
if (pixbufs[i])
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Plugins-Commits
mailing list