gnome-logs开发记录4--noob重构代码就是这个feel

bug链接:https://bugzilla.gnome.org/show_bug.cgi?id=726228


只记得贡献了第一次代码后,在bugzilla中找来找去,不知怎么就选上了这个任务。或许是表面上看着很简单吧。至少现在看来我是大错特错了。

当时自己确定要修复这个bug时,就给David发了一封邮件,告知他我的意愿。David在回信中谈到了他自己对这个bug的认识,如下:

My suggestion would be to create a new GlEventView widget, which would be a stack which switches between the category list/event list view and the details view. It might be a bit complex to disentangle the code, especially the signal propagation during view mode changes, but the majority of the patch should be moving code from one file to another.

当然,对于我这么一个newbie来说,这些解释肯定是对我的帮助不太大的。通过之后和David的交流,我算是向前买了一小步。当然这一段时间,自己也算是摸不着北地摸索了很久,笔记本又增加了若干页墨迹的重量。

之前程序中构件等级是这样的:

window

->category list

->stack

    ->event list view

    ->detail view

目标是这样:

window

->stack</

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值