Commit graph

606 commits

Author SHA1 Message Date
Ondrej Holy
de1fc65ab3 cc-editable-entry: Add width_chars, max_width_chars and ellipsize properties
https://bugzilla.gnome.org/show_bug.cgi?id=693326
2013-04-26 17:28:20 +02:00
Bastien Nocera
c0fde4f260 shell: Use GtkHeaderBar instead of GdHeaderBar 2013-04-24 11:07:50 +02:00
Bastien Nocera
3c9843eb38 shell: Use GtkStack instead of GdStack 2013-04-24 10:59:39 +02:00
Bastien Nocera
015cd17f96 shell: Remove obsolete libnotify dependency
The notification code to open the firewall ports was removed
in commit 45ba8e89e8, but libnotify
was still initialised.

https://bugzilla.gnome.org/show_bug.cgi?id=697035
2013-04-12 11:39:36 +02:00
Emanuele Aina
ab0576f1f0 shell: Expose panel launching with DBus-activation
Turn Control Center in a DBus-activable service and export a
'launch-panel' GAction which accepts a tuple containing the id of the
desired panel and its parameters as a GVariant array.

The snippet below show how the custom shortcuts section of the keyboard
panel can be invoked by a external programs through DBus:

GVariantBuilder *flags = g_variant_builder_new (G_VARIANT_TYPE_VARDICT);
GVariantBuilder *params = g_variant_builder_new (G_VARIANT_TYPE ("av"));
g_variant_builder_add (params, "v", g_variant_builder_end (flags));
g_variant_builder_add (params, "v", g_variant_new_string ("shortcuts"));
g_variant_builder_add (params, "v", g_variant_new_string ("custom"));
GVariant *v = g_variant_new ("(s@av)", "keyboard", g_variant_builder_end (params));

GApplication *gnomecc = g_application_new (id, G_APPLICATION_IS_LAUNCHER);
if (!g_application_register (gnomecc, NULL, &error))
  g_error ("Failed to register launcher for %s: %s", id, error->message);
g_action_group_activate_action (G_ACTION_GROUP (gnomecc), "launch-panel", v);

https://bugzilla.gnome.org/show_bug.cgi?id=696054
2013-04-03 18:09:15 +02:00
Emanuele Aina
31a8a99440 shell: Let panels have their own commandline flags
Add a class method to CcPanel to get a GOptionGroup which will be added
to the main commandline parser. This gives panels the chance to have
commandline "--flags" in addition to the already available parameters.

This changes changes the way parameters are passed to panels: the first
entry in the GVariant array is always the a{sv} dictionary of
commandline flags, followed by the remaining free-form arguments.

https://bugzilla.gnome.org/show_bug.cgi?id=696054
2013-04-03 18:09:11 +02:00
Emanuele Aina
9977bb200e shell: Use GVariant to convey panel arguments instead of a string array
By using a GVariant of type "av" we can potentially pass more structured
data to panels, which will become relevant with the ability to invoke
them by GAction-based DBus-activation introduced in the following patch.

https://bugzilla.gnome.org/show_bug.cgi?id=696054
2013-04-03 18:02:10 +02:00
Bastien Nocera
a529e54669 shell: Remove debug 2013-03-26 18:39:41 +01:00
Frédéric Péters
7b3eb23bc4 shell: Fix translation of the window title
The string was marked as translatable, but the translation
was not used.
2013-03-26 17:00:45 +01:00
Jasper St. Pierre
c764fbe745 shell: Make the mouse back button go to the homepage
https://bugzilla.gnome.org/show_bug.cgi?id=690087
2013-03-26 14:40:46 +01:00
Cosimo Cecchi
7ec1a1eb75 Use latest libgd 2013-03-19 11:48:21 -04:00
Cosimo Cecchi
374cb444fe cc-window: use GdHeaderSimpleButton for the Back button
Simplifies code and ensures consistency with the other applications.
2013-03-19 11:48:19 -04:00
Florian Müllner
ddba39047b window: Split search into words
Rather than using the search entry text as a single term when filtering
panels, split the text into multiple terms and require result to match all
of them, which is consistent with the search provider and the encouraged
search pattern for GNOME applications.

https://bugzilla.gnome.org/show_bug.cgi?id=694960
2013-03-02 00:05:05 +01:00
Giovanni Campagna
2f1ae7e26f shell: don't prelight icons in the icon view
The follow-state property used to have no effect, because we used pixbufs
directly. It started to work when we switched to GIcons, but it looks
bad because the prelighted icons are too contrasted, so revert to the
previous behaviour.

https://bugzilla.gnome.org/show_bug.cgi?id=694219
2013-02-22 14:39:41 +01:00
Bastien Nocera
575bd6267d shell: Use GdStack for switching panels
https://bugzilla.gnome.org/show_bug.cgi?id=694325
2013-02-22 08:28:34 +01:00
Jeremy Bicha
178c16f4d8 shell: Drop obsolete region arguments from bash completion
https://bugzilla.gnome.org/show_bug.cgi?id=694183
2013-02-19 17:58:33 +01:00
Rui Matos
cfa16a070d Move cc-util into panels/common
We need this in some panels too.
2013-02-19 12:25:54 +01:00
Bastien Nocera
56008765c8 shell: Handle the usual "Alt+Left" key binding
For left-to-right languages, and Alt+Right to RTL.
2013-02-19 11:27:22 +01:00
Bastien Nocera
6cb6404e7e shell: Make the "home" button act as a "previous" button
Keep history of the visited panels, when navigating between
them through links, or activated through the shell's menu items,
and go back to the overview when the history is empty.

https://bugzilla.gnome.org/show_bug.cgi?id=643322
2013-02-19 11:27:22 +01:00
William Jon McCann
91924726f1 shell: Use a go-previous icon instead of grid
This is what we do everywhere else.

https://bugzilla.gnome.org/show_bug.cgi?id=681530
2013-02-19 11:27:19 +01:00
Jeremy Bicha
dd73671c24 shell: build fix (clutter-gtk includes)
Building without cheese broke with commit 64467d7

https://bugzilla.gnome.org/show_bug.cgi?id=694118
2013-02-18 15:20:44 -05:00
William Jon McCann
73a5b5ce45 Fix build 2013-02-18 14:09:24 -05:00
Bastien Nocera
5f4e140078 shell: Remove unused gnomecc.menu file
Searching for Settings is now handled through a search provider
in gnome-control-center, for which the display is special-cased in
gnome-shell.
2013-02-18 19:24:48 +01:00
Cosimo Cecchi
92765b97c0 cc-window: don't render a frame around scrolled windows
The header bar will now render one.
2013-02-18 12:55:55 -05:00
Cosimo Cecchi
e160e43f23 cc-window: Fix style of home button 2013-02-18 11:32:45 -05:00
Bastien Nocera
4edf2ed16f shell: Remove extraneous gtk_window_set_title() call
As the window title doesn't change anymore.
2013-02-18 16:45:09 +01:00
William Jon McCann
b0cfa3f08c shell: Put the panel title in the header
Instead of in the window title

https://bugzilla.gnome.org/show_bug.cgi?id=692174
2013-02-18 16:40:44 +01:00
William Jon McCann
8bee6c9461 shell: Use GdHeaderBar in the shell
https://bugzilla.gnome.org/show_bug.cgi?id=692174
2013-02-18 16:40:44 +01:00
William Jon McCann
17d52d46b0 shell: Don't use GtkBuilder for constructing the shell
So that we can more easily add GdHeaderBar in the following
patches.

Much of the advantage of using gtkbuilder was lost anyway because
we couldn't really use it from glade without corrupting the file.

https://bugzilla.gnome.org/show_bug.cgi?id=692174
2013-02-18 16:40:44 +01:00
William Jon McCann
42974a3c8d shell: Rename shell window to CcWindow
This avoids the confusion of the name gnome-control-center.c and
is consistent with all the other classes/files in the project.

https://bugzilla.gnome.org/show_bug.cgi?id=692174
2013-02-18 16:40:44 +01:00
William Jon McCann
408ae4a87c shell: Make the main app window a subclass of GtkApplicationWindow
This allows for better encapsulation of window logic. In order to
do this CcShell was made an interface instead of an abstract base
class.

https://bugzilla.gnome.org/show_bug.cgi?id=692174
2013-02-18 16:40:44 +01:00
William Jon McCann
64467d7f0a shell: Make the application a GtkApplication subclass
This promotes better encapsulation and allows us to move
application logic out of main() and rename the confusingly
named control-center.c to main.c

https://bugzilla.gnome.org/show_bug.cgi?id=692174
2013-02-18 16:40:44 +01:00
Giovanni Campagna
59f873ecf5 Add a gnome-shell search-provider for settings panel
Replace the gnome-shell builtin settings search, which relied on removed
menu files, with one that uses the remote search infrastructure and
CcSearchModel, and features the ability to continue searching within the
control center application.

https://bugzilla.gnome.org/show_bug.cgi?id=690577
2013-02-18 16:08:22 +01:00
Giovanni Campagna
3911ef1c3a shell: add a way to compile the panel loader without GType functions
This will allow to use the panel loader in the search provider, which
is a separate executable and doesn't link all the panel modules.

https://bugzilla.gnome.org/show_bug.cgi?id=690577
2013-02-18 16:08:22 +01:00
Jasper St. Pierre
39c81b399d Remove gnomecc.directory
gnome-menus now ships its own directory file.
2013-02-15 20:50:44 -05:00
Emanuele Aina
30144e58f3 shell: Do not forcibly suppress debug messages if --verbose not set
Only force G_MESSAGES_DEBUG=all on --verbose, and follow the usual
logging behaviour otherwise.

This fixes specifying log domains in G_MESSAGES_DEBUG and also
G_MESSAGES_DEBUG=all without setting --verbose.

https://bugzilla.gnome.org/show_bug.cgi?id=693732
2013-02-13 19:17:19 +01:00
Jeremy Bicha
2b830e0388 shell: Add additional arguments to bash completion file
https://bugzilla.gnome.org/show_bug.cgi?id=693397
2013-02-11 12:38:03 -05:00
Bastien Nocera
c580185f4e shell: Ensure completion is sorted by default 2013-02-11 09:37:55 +01:00
Bastien Nocera
d7dbcab34f shell: Add sound and user-accounts to the completion
https://bugzilla.gnome.org/show_bug.cgi?id=693398
2013-02-11 09:37:30 +01:00
Rui Matos
5357cdea8a shell: Fix search result activation on Return key press
'search_view' isn't a GtkIconView anymore and the row-activated
handler relies on having the selection set to the proper row to
activate it.

https://bugzilla.gnome.org/show_bug.cgi?id=692821
2013-01-30 11:18:20 +01:00
Rui Matos
75944f3ac5 shell: Remove unused variable
https://bugzilla.gnome.org/show_bug.cgi?id=692821
2013-01-30 11:17:21 +01:00
Rui Matos
ac359b1d62 shell: Export our main window XID in an environment variable
This allows external tools to know that they are being called from
gnome-control-center and look like attached modal dialogs as per
design.

https://bugzilla.gnome.org/show_bug.cgi?id=691854
2013-01-21 15:37:46 +01:00
William Jon McCann
a98e81e1c3 shell: Activate items on single click
https://bugzilla.gnome.org/show_bug.cgi?id=692150
2013-01-21 08:32:18 +01:00
Jeremy Bicha
da2a8bd62e shell: Rename bash completion file so that it's recognized
Bash completion needs the file to be named gnome-control-center

https://bugzilla.gnome.org/show_bug.cgi?id=691924
2013-01-17 14:14:07 +01:00
Bastien Nocera
66808c2b3f screen: Remove screen panel
It's been replaced by the updated Power panel and the new Privacy panel.
2013-01-17 11:06:02 +01:00
Bastien Nocera
d6df12fa25 shell: Fix distcheck
No overriding EXTRA_DIST please.
2013-01-15 16:16:28 +01:00
Rui Matos
6a3fec2521 shell: Fix a crash 2013-01-15 14:33:15 +01:00
Bastien Nocera
d2bfa254d3 Revert "shell: Remove unused gnome-menus helper files"
The files are used by gnome-shell to display the control-center
search resulst in the overview.

https://bugzilla.gnome.org/show_bug.cgi?id=690577

This reverts commit 10f292dc6b.

Conflicts:
	po/POTFILES.in
	shell/Makefile.am
2013-01-15 12:07:46 +01:00
Giovanni Campagna
eb3dfe9b77 shell: Use CcShellMode to do the panels filtering
https://bugzilla.gnome.org/show_bug.cgi?id=690577
2013-01-15 11:37:24 +01:00
Thomas Wood
b30d0133b9 Add initial implementation of the new Sharing panel
https://bugzilla.gnome.org/show_bug.cgi?id=687772
2013-01-14 18:06:20 +00:00