After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 674405 - i can has full-screen mode?
i can has full-screen mode?
Status: RESOLVED FIXED
Product: system-monitor
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: System-monitor maintainers
System-monitor maintainers
Depends on:
Blocks:
 
 
Reported: 2012-04-19 15:54 UTC by Teppo Turtiainen
Modified: 2013-08-01 16:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
System Monitor at 1366 x 768 resolution. (76.34 KB, image/png)
2012-07-25 15:29 UTC, Teppo Turtiainen
  Details
Add libgd (2.84 KB, patch)
2013-03-19 11:15 UTC, Stefano Facchini
needs-work Details | Review
Switch to GdStack and GtkHeaderBar (14.83 KB, patch)
2013-03-19 11:15 UTC, Stefano Facchini
none Details | Review
Port to GtkStack and GtkHeaderBar (13.59 KB, patch)
2013-07-25 13:55 UTC, Stefano Facchini
committed Details | Review
Move Refresh and View buttons in the headerbar (9.61 KB, patch)
2013-07-25 13:56 UTC, Stefano Facchini
committed Details | Review
Move End Process button in the headerbar (4.13 KB, patch)
2013-07-25 13:56 UTC, Stefano Facchini
none Details | Review
Move End Process button in the headerbar (4.26 KB, patch)
2013-07-25 20:58 UTC, Stefano Facchini
committed Details | Review

Description Teppo Turtiainen 2012-04-19 15:54:13 UTC
I've recently been forced to use System Monitor on a 1366 x 768 display and it's no fun. GNOME Shell and System Monitor's title, menu, tab and status bars take too many vertical pixels and the graphs appear all squashed. Can we please add a full-screen mode to System Monitor?
Comment 1 Robert Roth 2012-07-24 20:08:48 UTC
Could you please attach a screenshot of how system monitor looks on your screen?
Comment 2 Teppo Turtiainen 2012-07-25 15:29:15 UTC
Created attachment 219635 [details]
System Monitor at 1366 x 768 resolution.
Comment 3 Stefano Facchini 2012-09-26 14:41:28 UTC
After the port to App menu has landed, we could think of replace the tab labels with buttons in a toolbar  (see e.g the mockup https://github.com/gnome-design-team/gnome-mockups/blob/master/usage/usage-wireframes.png), and then set hide_titlebar_when_maximized = TRUE.
Comment 4 Robert Roth 2012-09-27 20:31:01 UTC
Usage will be a separate application, as far as I know, as it's targeted for novice users/daily use, while system monitor is/will remain an advanced tool for advanced tasks not achievable from Usage, and others. Nevertheless, I like the hide_titlebar_when_maximized idea.
Comment 5 Robert Roth 2012-09-27 20:32:12 UTC
By the way, is there a gtk widget for viewbuttons like the ones on the screenshot?
Comment 6 Stefano Facchini 2012-09-27 21:45:14 UTC
(In reply to comment #4)
> Usage will be a separate application, as far as I know, as it's targeted for
> novice users/daily use, while system monitor is/will remain an advanced tool
> for advanced tasks not achievable from Usage, and others. Nevertheless, I like
> the hide_titlebar_when_maximized idea.

Yes, sure, I was just thinking of using some of the new GNOME3 patterns in System Monitor. If you like the idea I can prepare a patch for this. The button box in the mockup can be done with GtkRadioButtons properly styled, for example. But before, could you consider also bug 684536 ? I think that some cleanup could be useful at this point
Comment 7 Robert Roth 2012-11-30 11:51:51 UTC
> Yes, sure, I was just thinking of using some of the new GNOME3 patterns in
> System Monitor. If you like the idea I can prepare a patch for this. The button
> box in the mockup can be done with GtkRadioButtons properly styled, for
> example. 
Patches are welcome, that would be great!
> But before, could you consider also bug 684536 ? I think that some
> cleanup could be useful at this point
That's done already, thanks for the patch.
Comment 8 Stefano Facchini 2013-03-19 11:15:09 UTC
Created attachment 239236 [details] [review]
Add libgd
Comment 9 Stefano Facchini 2013-03-19 11:15:23 UTC
Created attachment 239237 [details] [review]
Switch to GdStack and GtkHeaderBar
Comment 10 Robert Roth 2013-03-27 19:50:47 UTC
Review of attachment 239236 [details] [review]:

Strange thing: the patch adds the 0 sized libgd directory, but make complained about the directory libgd not existing, until I have removed the libgd file and added the submodule again with git submodule add. Is this normal? Can this be automated somehow?
Comment 11 Stefano Facchini 2013-03-27 20:12:48 UTC
(In reply to comment #10)
> Review of attachment 239236 [details] [review]:
> 
> Strange thing: the patch adds the 0 sized libgd directory, but make complained
> about the directory libgd not existing, until I have removed the libgd file and
> added the submodule again with git submodule add. Is this normal? Can this be
> automated somehow?

No I don't think it's normal :)
Maybe you applied the patch with "git apply"? It fails for submodules, the correct command is "git am" witch actually commits the submodule
Comment 12 Robert Roth 2013-03-28 06:58:43 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > Review of attachment 239236 [details] [review] [details]:
> > 
> > Strange thing: the patch adds the 0 sized libgd directory, but make complained
> > about the directory libgd not existing, until I have removed the libgd file and
> > added the submodule again with git submodule add. Is this normal? Can this be
> > automated somehow?
> 
> No I don't think it's normal :)
> Maybe you applied the patch with "git apply"? It fails for submodules, the
> correct command is "git am" witch actually commits the submodule

No, I have applied the patch with patch -p1<.... I have never heard of git am until now, but I will try that when I get home.
Comment 13 António Fernandes 2013-06-08 17:16:04 UTC
libgd submodule is no longer needed. GtkStack and GtkStackSwitcher are available since gtk+ 3.9.0

(It would be great to have this on 3.10. Thank you for working on this.)
Comment 14 Robert Roth 2013-07-22 22:52:49 UTC
@Stefano Facchini: Could you please help me out in updating this patch? I have started manually applying it (as it didn't apply to any of the files) but I can't get properly migrate it as the GAction porting and this patch are totally incompatible.
Comment 15 Stefano Facchini 2013-07-23 13:43:33 UTC
(In reply to comment #14)
> @Stefano Facchini: Could you please help me out in updating this patch? I have
> started manually applying it (as it didn't apply to any of the files) but I
> can't get properly migrate it as the GAction porting and this patch are totally
> incompatible.

Yes updating this patch was in the TODO list :), but if you agree, I'd just prefer to look for some more possible cleanup before actully adding new code, it seems to me that the interface code could be reworked and disentangled a bit, for instance moving each callback where it belongs to instead of keeping them all mixed up in a single callback.cpp...
Comment 16 Robert Roth 2013-07-23 13:51:49 UTC
(In reply to comment #15)
> Yes updating this patch was in the TODO list :), but if you agree, I'd just
> prefer to look for some more possible cleanup before actully adding new code,
> it seems to me that the interface code could be reworked and disentangled a
> bit, for instance moving each callback where it belongs to instead of keeping
> them all mixed up in a single callback.cpp...
Agreed on the callbacks stuff, I have been thinking of tying as much as possible to gsettings bindings.
Comment 17 Stefano Facchini 2013-07-25 13:55:25 UTC
Created attachment 250116 [details] [review]
Port to GtkStack and GtkHeaderBar

Updated patch. There's a problem with the resources page (black graph background), but since I saw you 
have on going work in the ubergraph branch I didn't even try to touch loadgraphs.cpp.
Comment 18 Stefano Facchini 2013-07-25 13:56:17 UTC
Created attachment 250117 [details] [review]
Move Refresh and View buttons in the headerbar

Now that we have a headerbar we can put our buttons there
Comment 19 Stefano Facchini 2013-07-25 13:56:30 UTC
Created attachment 250118 [details] [review]
Move End Process button in the headerbar
Comment 20 Stefano Facchini 2013-07-25 20:58:44 UTC
Created attachment 250143 [details] [review]
Move End Process button in the headerbar

Rebased.
Comment 21 Robert Roth 2013-07-25 22:35:09 UTC
Review of attachment 250117 [details] [review]:

Pushed.
Comment 22 Robert Roth 2013-07-25 22:35:14 UTC
Review of attachment 250116 [details] [review]:

Pushed.
Comment 23 Robert Roth 2013-07-25 22:35:22 UTC
Review of attachment 250143 [details] [review]:

Pushed.
Comment 24 Robert Roth 2013-08-01 16:18:47 UTC
As the tabs have been converted into stackswitcher, the buttons are all in the same row with the stackswitcher buttons, and the titlebar is hidden when maximized, I am marking this as fixed.

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.