aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-messages.c
Commit message (Collapse)AuthorAgeFilesLines
* Include fallback icon namesLars Uebernickel2012-09-281-3/+12
| | | | | And use g_icon_new_from_string in the indicator to make it load fallbacks.
* Request LARGE_TOOLBAR icons for the panelLars Uebernickel2012-09-251-3/+2
| | | | | To make it consistent with the other indicators.
* Use indicator-message icons with chat statusLars Uebernickel2012-09-181-6/+33
| | | | | | | | | | Changes the state of the "messages" action from a boolean (draws-attention) to a string (icon-name). This has the added benefit that more logic is moved from the plugin into the service. It also fixes an edge case: the messaging menu didn't have the blue icon after the service restarted (if anything was drawing attention).
* Show menu separators between sectionsLars Uebernickel2012-09-131-18/+8
| | | | | | | | | | | | | Previously, gtk didn't support changing the menu model on an already-created GtkMenu. Since IndicatorObject doesn't allow changing the GtkMenu it exports to the panel, IndicatorMessages created a menu with a single section, into which the menu from the service was inserted (and removed when the service died). This led to seperators not being shown, because separators are only shown between top-level sections. Gtk now has gtk_menu_shell_bind_model, which allows us to get rid of top-level wrapper section.
* indicator-messages.c: don't call menu_items_changed directlyLars Uebernickel2012-09-051-31/+38
|
* Hide indicator when no applications are configured to use itLars Uebernickel2012-09-041-50/+49
| | | | | | This is done by removing the header item from the menu model in the service. On the panel side, call indicator_object_hide() if the recevied menu is empty.
* Merge lp:~larsu/messaging-menu/fix-iconsLars Uebernickel2012-08-271-1/+2
|\
| * Show icons on status menu itemsLars Uebernickel2012-08-271-0/+2
| | | | | | | | | | | | | | This introduces IdoMenuItem, a GtkCheckMenuItem that can also show icons. This should go into libido at some point. Also, Im{App,Source}MenuItem could derive from it so that the GMenuItem-setting logic is only in one place.
| * Remove unused #includeLars Uebernickel2012-08-271-1/+0
| |
* | Bring back the blue icon when a source is drawing attentionLars Uebernickel2012-08-271-1/+26
|/
* Fix a memory leak and potential crash: ref_sink the widget, not the GMenuLars Uebernickel2012-08-251-1/+2
|
* Make the panel plugin reconnect to the service when it restartsLars Uebernickel2012-08-231-36/+56
|
* Update remaining license headersLars Uebernickel2012-08-211-1/+2
|
* Show icons in application and source menu itemsLars Uebernickel2012-08-211-6/+19
| | | | | | | Everthing goes through GIcon now, using g_icon_{to,new_for}_string to set a string attribute on the menu item. The attribute is prefixed x-canonical- for now.
* Use a custom menu item for message source menu itemsLars Uebernickel2012-08-211-0/+2
|
* Merge Charles' branch: fixes a memory and a signal leak; various neat cleanupsLars Uebernickel2012-08-201-5/+3
|\ | | | | | | | | | | The "add sanity check" commit is not included, as app-section is not public. This merge also removes the remaining sanity checks in app-section.
| * in indicator-messages' indicator_messages_accessible_desc_updated(), don't ↵Charles Kerr2012-08-191-0/+2
| | | | | | | | leak the entries GList
| * in indicator-messages's dispose(), use g_clear_object()Charles Kerr2012-08-191-5/+1
| |
* | Use a custom menu item for application itemsLars Uebernickel2012-08-201-0/+6
|/ | | | | | | | | | | | | This introduces ImAppMenuItem: a menu item which shows a small triangle next to an application's name if the associated app is running. The running state is communicated to the menu by giving the "launch" action a boolean state. This depends on a patch to gtk which creates custom menu items from gtk_menu_new_from_model when the x-canonical-type attribute is set on a menu item in the model.
* Set accessible description (statically to "Messages" for now)Lars Uebernickel2012-08-161-5/+27
|
* panel plugin: remove unused global variables and structLars Uebernickel2012-08-161-14/+1
|
* Use the old libindicator APILars Uebernickel2012-08-161-13/+90
| | | | | | | indicator-messages is the only indicator that communicates with its service through GMenuModel. This patch keeps the GMenuModel stuff, but creates the GtkMenu in the plugin instead of relying on unity-panel-service.
* Use gdbus-codegen also for the server side messages serviceLars Uebernickel2012-06-271-1/+0
|
* indicator-messages.c: remove messages-service proxyLars Uebernickel2012-06-271-267/+0
| | | | | | | It wasn't used anymore, all menu-related things are communicated via gmenu now. Regression: accessible description
* Remove dependency on menu-factoryLars Uebernickel2012-06-271-11/+13
| | | | | | libindicator now has GMenuModel support (unreleased), so indicator-messages doesn't need to create gtk menus anymore.
* Port to gmenu, act II - the indicator objectLars Uebernickel2012-05-251-354/+31
| | | | | | | Ports the indicator object itself to listen to exported gactions and gmenumodels. The menu creation itself is outsourced to a new dependency: menu-factory-gtk.
* Remove gtk2 supportLars Uebernickel2012-05-071-69/+0
|
* Change i18n header to gi18n-lib.h to translate the accessible description. ↵Gabor Kelemen2012-03-171-1/+1
| | | | LP: #957525
* Revert r244, there's only one paddingLars Uebernickel2012-03-081-1/+1
|
* Removing some GTK3 code, won't look as nice on GTK2, but ehTed Gould2012-02-101-0/+12
|
* Use floor instead of round for lozenge position, better err on them being ↵Lars Uebernickel2012-02-101-1/+1
| | | | too large
* Merge trunkLars Uebernickel2012-02-101-0/+4
|\
| * Fixing dbusmenu-gtk include pathsTed Gould2012-01-311-5/+0
| |
| * Added macro to gtk_hbox_new fix per charles' advice (and fixed tabination).Allan LeSage2012-01-231-0/+4
| |
| * Fix for gtk_hbox_new, werror on deprecated.Allan LeSage2012-01-231-1/+1
| |
* | Fix left margin of indicator itemsLars Uebernickel2012-02-101-1/+1
| |
* | Only draw right items as lozenges if they contain a countLars Uebernickel2012-02-031-0/+13
| |
* | Don't draw empty lozengesLars Uebernickel2012-02-031-0/+3
| |
* | Make minimum width of lozenge that of two charactersLars Uebernickel2012-02-031-0/+2
| |
* | Switch to new dbusmenu includesLars Uebernickel2012-02-031-5/+0
| |
* | Align status icons with app iconsLars Uebernickel2012-01-221-15/+12
| | | | | | | | | | | | | | This breaks down for sources which don't advertise themselves as an "indicator-item" (e.g. Thunderbird's "Compose New Message" and "Contacts"), because they keep being indented like a normal menu item.
* | Pixel-align the lozenge text to make it less blurryLars Uebernickel2012-01-221-3/+2
| |
* | Center lozenge text verticallyLars Uebernickel2012-01-221-0/+4
| | | | | | | | | | | | This ignores the label's padding and alignments, but they aren't used right now.
* | Get the menu's current font size instead of hard coding it to 12ptLars Uebernickel2012-01-221-12/+14
| |
* | Don't force lozenges to have the same widthLars Uebernickel2012-01-221-4/+0
| | | | | | | | | | | | | | | | This makes the menu more consistent with the mockups at https://wiki.ubuntu.com/MessagingMenu and https://wiki.ubuntu.com/MenuLayout
* | Use gtk_box_new instead of gtk_hbox_newLars Uebernickel2012-01-221-1/+1
|/ | | | | | gtk_hbox_new is deprecated and using it broke the build with -Werror=deprecated-declarations, which seems to be enabled by default.
* Export the indicator name hintMarco Trevisan (Treviño)2011-11-081-0/+11
| | | | Using the PACKAGE config.h variable.
* Memory leak on pixbufsTed Gould2011-09-211-8/+4
|\
| * Memory leaks fixesChow Loong Jin2011-01-211-8/+4
| |
* | Don't look up a style value we're not usingTed Gould2011-08-241-3/+0
| |