Re: [Elementary-dev-community] [Merge] lp:~elementary-dev-community/wingpanel/bug-fix-1007630 into lp:wingpanel
Review: Approve -- https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 Your team elementary Developer Community is subscribed to branch lp:~elementary-dev-community/wingpanel/bug-fix-1007630. -- Mailing list: https://launchpad.net/~elementary-dev-community Post to : elementary-dev-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~elementary-dev-community More help : https://help.launchpad.net/ListHelp
[Elementary-dev-community] [Merge] lp:~elementary-dev-community/wingpanel/bug-fix-1007630 into lp:wingpanel
The proposal to merge lp:~elementary-dev-community/wingpanel/bug-fix-1007630 into lp:wingpanel has been updated. Status: Needs review = Approved For more details, see: https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 -- https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 Your team elementary Developer Community is subscribed to branch lp:~elementary-dev-community/wingpanel/bug-fix-1007630. -- Mailing list: https://launchpad.net/~elementary-dev-community Post to : elementary-dev-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~elementary-dev-community More help : https://help.launchpad.net/ListHelp
[Elementary-dev-community] [Merge] lp:~elementary-dev-community/wingpanel/bug-fix-1007630 into lp:wingpanel
The proposal to merge lp:~elementary-dev-community/wingpanel/bug-fix-1007630 into lp:wingpanel has been updated. Commit Message changed to: Fixed the arrow not well positioned after changing the contents of the indicator, adding a repaint after configure_event signal. For more details, see: https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 -- https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 Your team elementary Developer Community is subscribed to branch lp:~elementary-dev-community/wingpanel/bug-fix-1007630. -- Mailing list: https://launchpad.net/~elementary-dev-community Post to : elementary-dev-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~elementary-dev-community More help : https://help.launchpad.net/ListHelp
[Elementary-dev-community] [Merge] lp:~elementary-dev-community/wingpanel/bug-fix-1007630 into lp:wingpanel
The proposal to merge lp:~elementary-dev-community/wingpanel/bug-fix-1007630 into lp:wingpanel has been updated. Status: Approved = Merged For more details, see: https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 -- https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 Your team elementary Developer Community is subscribed to branch lp:~elementary-dev-community/wingpanel/bug-fix-1007630. -- Mailing list: https://launchpad.net/~elementary-dev-community Post to : elementary-dev-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~elementary-dev-community More help : https://help.launchpad.net/ListHelp
Re: [Elementary-dev-community] [Merge] lp:~elementary-dev-community/wingpanel/bug-fix-1007630 into lp:wingpanel
How, o how many times shall I tell you to use elementary-test-merge for reproducible builds and testing, instead of doing everything manually? Are you not bored to do the download-compile-run cycles manually yet? sudo apt-get install elementary-testing-scripts elementary-test-merge https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 And it compiles and installs. Please don't bother doing all this manually. -- https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 Your team elementary Developer Community is subscribed to branch lp:~elementary-dev-community/wingpanel/bug-fix-1007630. -- Mailing list: https://launchpad.net/~elementary-dev-community Post to : elementary-dev-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~elementary-dev-community More help : https://help.launchpad.net/ListHelp
Re: [Elementary-dev-community] [Merge] lp:~elementary-dev-community/wingpanel/bug-fix-1007630 into lp:wingpanel
It does fix the bug for me. -- https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 Your team elementary Developer Community is subscribed to branch lp:~elementary-dev-community/wingpanel/bug-fix-1007630. -- Mailing list: https://launchpad.net/~elementary-dev-community Post to : elementary-dev-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~elementary-dev-community More help : https://help.launchpad.net/ListHelp
Re: [Elementary-dev-community] [Merge] lp:~elementary-dev-community/wingpanel/bug-fix-1007630 into lp:wingpanel
Review: Approve So, tigrang's branch was Needs Fixing because designers don't want the arrows on the edge of the indicators. Therefore, this branch needs ~elementary-design input too. Personally, I think it's better to have them there than to have a buggy indicators experience. Still, it's up to them, since I approve the code (had already approved tigrang's). -- https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 Your team elementary Developer Community is subscribed to branch lp:~elementary-dev-community/wingpanel/bug-fix-1007630. -- Mailing list: https://launchpad.net/~elementary-dev-community Post to : elementary-dev-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~elementary-dev-community More help : https://help.launchpad.net/ListHelp
Re: [Elementary-dev-community] [Merge] lp:~elementary-dev-community/wingpanel/bug-fix-1007630 into lp:wingpanel
bazaar.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/revision/150 I mean, I approved what tigrang did and now I also approve that. -- https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 Your team elementary Developer Community is subscribed to branch lp:~elementary-dev-community/wingpanel/bug-fix-1007630. -- Mailing list: https://launchpad.net/~elementary-dev-community Post to : elementary-dev-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~elementary-dev-community More help : https://help.launchpad.net/ListHelp
[Elementary-dev-community] [Merge] lp:~elementary-dev-community/wingpanel/bug-fix-1007630 into lp:wingpanel
Albert has proposed merging lp:~elementary-dev-community/wingpanel/bug-fix-1007630 into lp:wingpanel. Requested reviews: elementary Pantheon team (elementary-pantheon) Related bugs: Bug #1007630 in Wingpanel: Wrong position of the arrow in some indicators https://bugs.launchpad.net/wingpanel/+bug/1007630 For more details, see: https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 Fixed the arrow not well positioned after changing the contents of the indicator, adding a repaint after configure_event signal. This is how it looks on released version of elementary OS Luna: https://www.dropbox.com/s/66jmohecrhwy5vs/luna_released_bug.mp4 This is how it looks with this fix: https://www.dropbox.com/s/g63yurmg2izuxyq/luna_proposed_fix.mp4 -- https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 Your team elementary Developer Community is subscribed to branch lp:~elementary-dev-community/wingpanel/bug-fix-1007630. === modified file 'src/Indicator/IndicatorObjectEntry.vala' --- src/Indicator/IndicatorObjectEntry.vala 2013-08-19 19:12:24 + +++ src/Indicator/IndicatorObjectEntry.vala 2013-08-25 14:36:27 + @@ -27,8 +27,6 @@ // used for drawing private Gtk.Window menu; private Granite.Drawing.BufferSurface buffer; -private int w = -1; -private int h = -1; private int arrow_height = 10; private int arrow_width = 20; private double x = 10.5; @@ -72,9 +70,18 @@ set_submenu (entry.menu); setup_drawing (); - -entry.menu.get_children ().foreach (setup_margin); -entry.menu.insert.connect (setup_margin); + TREE + +entry.menu.get_children ().foreach (setup_margin); +entry.menu.insert.connect (setup_margin); +=== + +entry.menu.get_children ().foreach (setup_margin); +entry.menu.insert.connect (setup_margin); + +entry.menu.set_redraw_on_allocate (true); +entry.menu.configure_event.connect (entry_menu_configure_event_callback); + MERGE-SOURCE } public IndicatorIface get_indicator () { @@ -113,39 +120,56 @@ menu_parent.app_paintable = true; menu_parent.set_visual (Gdk.Screen.get_default ().get_rgba_visual ()); + TREE +=== +menu_parent.set_redraw_on_allocate (true); +menu_parent.configure_event.connect (entry_menu_parent_configure_event_callback); + MERGE-SOURCE menu_parent.draw.connect (entry_menu_parent_draw_callback); } + TREE +=== +private bool entry_menu_configure_event_callback (Gdk.EventConfigure event) { +entry.menu.queue_draw (); +return false; +} + +private bool entry_menu_parent_configure_event_callback (Gdk.EventConfigure event) { +var menu_parent = entry.menu.get_parent (); +menu_parent.queue_draw (); +return false; +} + + MERGE-SOURCE private bool entry_menu_parent_draw_callback (Cairo.Context ctx) { -var new_w = entry.menu.get_parent ().get_allocated_width (); -var new_h = entry.menu.get_parent ().get_allocated_height (); - -if (new_w != w || new_h != h) { -w = new_w; -h = new_h; - -buffer = new Granite.Drawing.BufferSurface (w, h); -cairo_popover (w, h); - -var cr = buffer.context; - -// shadow -cr.set_source_rgba (0, 0, 0, 0.5); -cr.fill_preserve (); -buffer.exponential_blur (6); -cr.clip (); - -// background -menu.get_style_context ().render_background (cr, 0, 0, w, h); -cr.reset_clip (); - -// border -cairo_popover (w, h); -cr.set_operator (Cairo.Operator.SOURCE); -cr.set_line_width (1); -Gdk.cairo_set_source_rgba (cr, menu.get_style_context ().get_border_color (Gtk.StateFlags.NORMAL)); -cr.stroke (); -} +var menu_parent = entry.menu.get_parent (); +int menu_width = menu_parent.get_allocated_width (); +int menu_height = menu_parent.get_allocated_height (); +int indicator_width = get_allocated_width (); +int indicator_height = get_allocated_height (); + +buffer = new Granite.Drawing.BufferSurface (menu_width, menu_height); +cairo_popover (menu_width, menu_height, indicator_width, indicator_height); + +var cr = buffer.context; + +// shadow +cr.set_source_rgba (0, 0, 0, 0.5); +cr.fill_preserve (); +buffer.exponential_blur (6); +cr.clip (); + +// background +menu.get_style_context
Re: [Elementary-dev-community] [Merge] lp:~elementary-dev-community/wingpanel/bug-fix-1007630 into lp:wingpanel
It segfaults to me (stable luna) wingpanel [_LOG_LEVEL_INFO 20:57:38.238671] Application.vala:77: Wingpanel version: 0.2.4 [_LOG_LEVEL_INFO 20:57:38.238845] Application.vala:79: Kernel version: 3.8.0-27-generic [_LOG_LEVEL_WARN 20:57:38.424913] IndicatorFileModel.vala:60: SKIP LOADING: libappmenu.so [_LOG_LEVEL_FATAL 20:57:38.428324] [GLib-GObject] g_object_set: assertion `G_IS_OBJECT (object)' failed [_LOG_LEVEL_FATAL 20:57:38.428367] Wingpanel will not function properly. [_LOG_LEVEL_FATAL 20:57:38.439736] IndicatorFileModel.vala:91: Unable to load /usr/lib/indicators3/7/libindicator-terminal.so [_LOG_LEVEL_FATAL 20:57:38.439786] Wingpanel will not function properly. [_LOG_LEVEL_WARN 20:57:38.439863] [GLib-GObject] invalid unclassed pointer in cast to `GObject' [_LOG_LEVEL_FATAL 20:57:38.439930] [GLib-GObject] g_object_steal_data: assertion `G_IS_OBJECT (object)' failed [_LOG_LEVEL_FATAL 20:57:38.439962] Wingpanel will not function properly. [_LOG_LEVEL_WARN 20:57:38.439997] [GLib-GObject] invalid unclassed pointer in cast to `GObject' [_LOG_LEVEL_FATAL 20:57:38.440030] [GLib-GObject] g_object_steal_data: assertion `G_IS_OBJECT (object)' failed [_LOG_LEVEL_FATAL 20:57:38.440062] Wingpanel will not function properly. [_LOG_LEVEL_FATAL 20:57:38.440623] IndicatorFileModel.vala:91: Unable to load /usr/lib/indicators3/7/libapplication.so [_LOG_LEVEL_FATAL 20:57:38.440662] Wingpanel will not function properly. [_LOG_LEVEL_FATAL 20:57:38.443748] IndicatorFileModel.vala:91: Unable to load /usr/lib/indicators3/7/libdatetime.so [_LOG_LEVEL_FATAL 20:57:38.443820] Wingpanel will not function properly. [_LOG_LEVEL_WARN 20:57:38.444045] [Gtk] A floating object was finalized. This means that someonecalled g_object_unref() on an object that had only a floatingreference; the initial floating reference is not owned by anyoneand must be removed with g_object_ref_sink(). [_LOG_LEVEL_WARN 20:57:38.454013] [libindicator] IndicatorObject class does not create a menu. We need one of those. Violación de segmento -- https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 Your team elementary Developer Community is subscribed to branch lp:~elementary-dev-community/wingpanel/bug-fix-1007630. -- Mailing list: https://launchpad.net/~elementary-dev-community Post to : elementary-dev-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~elementary-dev-community More help : https://help.launchpad.net/ListHelp
Re: [Elementary-dev-community] [Merge] lp:~elementary-dev-community/wingpanel/bug-fix-1007630 into lp:wingpanel
Same as above for me. -- https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 Your team elementary Developer Community is subscribed to branch lp:~elementary-dev-community/wingpanel/bug-fix-1007630. -- Mailing list: https://launchpad.net/~elementary-dev-community Post to : elementary-dev-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~elementary-dev-community More help : https://help.launchpad.net/ListHelp
Re: [Elementary-dev-community] [Merge] lp:~elementary-dev-community/wingpanel/bug-fix-1007630 into lp:wingpanel
Compile with valac-0.16 only Sent from my iPhone On Aug 25, 2013, at 8:01 PM, Erasmo Marín erasmo.ma...@gmail.com wrote: It segfaults to me (stable luna) wingpanel [_LOG_LEVEL_INFO 20:57:38.238671] Application.vala:77: Wingpanel version: 0.2.4 [_LOG_LEVEL_INFO 20:57:38.238845] Application.vala:79: Kernel version: 3.8.0-27-generic [_LOG_LEVEL_WARN 20:57:38.424913] IndicatorFileModel.vala:60: SKIP LOADING: libappmenu.so [_LOG_LEVEL_FATAL 20:57:38.428324] [GLib-GObject] g_object_set: assertion `G_IS_OBJECT (object)' failed [_LOG_LEVEL_FATAL 20:57:38.428367] Wingpanel will not function properly. [_LOG_LEVEL_FATAL 20:57:38.439736] IndicatorFileModel.vala:91: Unable to load /usr/lib/indicators3/7/libindicator-terminal.so [_LOG_LEVEL_FATAL 20:57:38.439786] Wingpanel will not function properly. [_LOG_LEVEL_WARN 20:57:38.439863] [GLib-GObject] invalid unclassed pointer in cast to `GObject' [_LOG_LEVEL_FATAL 20:57:38.439930] [GLib-GObject] g_object_steal_data: assertion `G_IS_OBJECT (object)' failed [_LOG_LEVEL_FATAL 20:57:38.439962] Wingpanel will not function properly. [_LOG_LEVEL_WARN 20:57:38.439997] [GLib-GObject] invalid unclassed pointer in cast to `GObject' [_LOG_LEVEL_FATAL 20:57:38.440030] [GLib-GObject] g_object_steal_data: assertion `G_IS_OBJECT (object)' failed [_LOG_LEVEL_FATAL 20:57:38.440062] Wingpanel will not function properly. [_LOG_LEVEL_FATAL 20:57:38.440623] IndicatorFileModel.vala:91: Unable to load /usr/lib/indicators3/7/libapplication.so [_LOG_LEVEL_FATAL 20:57:38.440662] Wingpanel will not function properly. [_LOG_LEVEL_FATAL 20:57:38.443748] IndicatorFileModel.vala:91: Unable to load /usr/lib/indicators3/7/libdatetime.so [_LOG_LEVEL_FATAL 20:57:38.443820] Wingpanel will not function properly. [_LOG_LEVEL_WARN 20:57:38.444045] [Gtk] A floating object was finalized. This means that someonecalled g_object_unref() on an object that had only a floatingreference; the initial floating reference is not owned by anyoneand must be removed with g_object_ref_sink(). [_LOG_LEVEL_WARN 20:57:38.454013] [libindicator] IndicatorObject class does not create a menu. We need one of those. Violación de segmento -- https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 Your team elementary Pantheon team is requested to review the proposed merge of lp:~elementary-dev-community/wingpanel/bug-fix-1007630 into lp:wingpanel. -- https://code.launchpad.net/~elementary-dev-community/wingpanel/bug-fix-1007630/+merge/181999 Your team elementary Developer Community is subscribed to branch lp:~elementary-dev-community/wingpanel/bug-fix-1007630. -- Mailing list: https://launchpad.net/~elementary-dev-community Post to : elementary-dev-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~elementary-dev-community More help : https://help.launchpad.net/ListHelp