[Ayatana-commits] [Merge] lp:~karl-qdh/indicator-datetime/appointmentwidth into lp:indicator-datetime

2011-04-18 Thread Karl Lattimer
Karl Lattimer has proposed merging 
lp:~karl-qdh/indicator-datetime/appointmentwidth into lp:indicator-datetime.

Requested reviews:
  Ted Gould (ted)
Related bugs:
  Bug #750671 in Indicator Date and Time: Calendar entry's title should be 
trimmed in the Calendar
  https://bugs.launchpad.net/indicator-datetime/+bug/750671
  Bug #762976 in indicator-datetime (Ubuntu): Menu is too narrow with calendar 
hidden
  https://bugs.launchpad.net/ubuntu/+source/indicator-datetime/+bug/762976

For more details, see:
https://code.launchpad.net/~karl-qdh/indicator-datetime/appointmentwidth/+merge/58098

fixes long appointment items, and items too short because the calendar is 
hidden.
-- 
https://code.launchpad.net/~karl-qdh/indicator-datetime/appointmentwidth/+merge/58098
Your team ayatana-commits is subscribed to branch lp:indicator-datetime.
=== modified file 'src/indicator-datetime.c'
--- src/indicator-datetime.c	2011-04-13 19:32:18 +
+++ src/indicator-datetime.c	2011-04-18 09:52:25 +
@@ -1285,6 +1285,13 @@
 	/* Label, probably a username, chat room or mailbox name */
 	mi_data-label = gtk_label_new(dbusmenu_menuitem_property_get(newitem, APPOINTMENT_MENUITEM_PROP_LABEL));
 	gtk_misc_set_alignment(GTK_MISC(mi_data-label), 0.0, 0.5);
+	
+	GtkStyle * style = gtk_widget_get_style(GTK_WIDGET(mi_data-label));
+PangoContext * context = gtk_widget_get_pango_context(GTK_WIDGET(mi_data-label));
+gint length = measure_string(style, context, GGG); // 15 char wide string max
+	gtk_widget_set_size_request(GTK_WIDGET(mi_data-label), length, -1); // Set the min size in pixels
+	
+	gtk_label_set_ellipsize(GTK_LABEL(mi_data-label), PANGO_ELLIPSIZE_END);
 	gtk_box_pack_start(GTK_BOX(hbox), mi_data-label, TRUE, TRUE, 0);
 	gtk_widget_show(mi_data-label);
 

___
Mailing list: https://launchpad.net/~ayatana-commits
Post to : ayatana-commits@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ayatana-commits
More help   : https://help.launchpad.net/ListHelp


[Ayatana-commits] [Merge] lp:~ken-vandine/libindicate/vapi_fixes into lp:libindicate

2011-04-18 Thread Ted Gould
The proposal to merge lp:~ken-vandine/libindicate/vapi_fixes into 
lp:libindicate has been updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~ken-vandine/libindicate/vapi_fixes/+merge/57959
-- 
https://code.launchpad.net/~ken-vandine/libindicate/vapi_fixes/+merge/57959
Your team ayatana-commits is subscribed to branch lp:libindicate.

___
Mailing list: https://launchpad.net/~ayatana-commits
Post to : ayatana-commits@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ayatana-commits
More help   : https://help.launchpad.net/ListHelp


[Ayatana-commits] [Merge] lp:~karl-qdh/indicator-datetime/appointmentwidth into lp:indicator-datetime

2011-04-18 Thread Ted Gould
The proposal to merge lp:~karl-qdh/indicator-datetime/appointmentwidth into 
lp:indicator-datetime has been updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~karl-qdh/indicator-datetime/appointmentwidth/+merge/58098
-- 
https://code.launchpad.net/~karl-qdh/indicator-datetime/appointmentwidth/+merge/58098
Your team ayatana-commits is subscribed to branch lp:indicator-datetime.

___
Mailing list: https://launchpad.net/~ayatana-commits
Post to : ayatana-commits@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ayatana-commits
More help   : https://help.launchpad.net/ListHelp


[Ayatana-commits] [Merge] lp:~karl-qdh/indicator-datetime/appointmentwidth into lp:indicator-datetime

2011-04-18 Thread noreply
The proposal to merge lp:~karl-qdh/indicator-datetime/appointmentwidth into 
lp:indicator-datetime has been updated.

Status: Approved = Merged

For more details, see:
https://code.launchpad.net/~karl-qdh/indicator-datetime/appointmentwidth/+merge/58098
-- 
https://code.launchpad.net/~karl-qdh/indicator-datetime/appointmentwidth/+merge/58098
Your team ayatana-commits is subscribed to branch lp:indicator-datetime.

___
Mailing list: https://launchpad.net/~ayatana-commits
Post to : ayatana-commits@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ayatana-commits
More help   : https://help.launchpad.net/ListHelp


[Ayatana-commits] [Merge] lp:~ken-vandine/libindicate/vapi_fixes into lp:libindicate

2011-04-18 Thread Ken VanDine
Ken VanDine has proposed merging lp:~ken-vandine/libindicate/vapi_fixes into 
lp:libindicate.

Requested reviews:
  Indicator Applet Developers (indicator-applet-developers)

For more details, see:
https://code.launchpad.net/~ken-vandine/libindicate/vapi_fixes/+merge/58142

Make sure Indicate-0.5.metadata is in the builddir when generating vapi

-- 
https://code.launchpad.net/~ken-vandine/libindicate/vapi_fixes/+merge/58142
Your team ayatana-commits is subscribed to branch lp:libindicate.
=== renamed file 'libindicate/Indicate-0.5.metadata' = 'libindicate/Indicate-0.5.metadata.in'
--- libindicate/Indicate-0.5.metadata	2011-04-15 21:21:33 +
+++ libindicate/Indicate-0.5.metadata.in	2011-04-18 15:29:30 +
@@ -1,1 +1,1 @@
-Indicate cheader_filename = listener.h
+Indicate cheader_filename = libindicate/listener.h

=== modified file 'libindicate/Makefile.am'
--- libindicate/Makefile.am	2011-04-15 21:21:33 +
+++ libindicate/Makefile.am	2011-04-18 15:29:30 +
@@ -31,7 +31,8 @@
 
 EXTRA_DIST += \
 	$(DBUS_SPECS) \
-	indicate-0.5.pc.in
+	indicate-0.5.pc.in \
+	Indicate-0.5.metadata.in
 
 lib_LTLIBRARIES = \
 	libindicate.la
@@ -113,7 +114,7 @@
 -include $(INTROSPECTION_MAKEFILE)
 INTROSPECTION_GIRS =
 INTROSPECTION_SCANNER_ARGS = \
---add-include-path=$(srcdir) \
+--add-include-path=$(top_srcdir) \
 --add-include-path=$(top_srcdir)/libindicate \
 $(introspection_sources) \
 --symbol-prefix=indicate \
@@ -140,6 +141,12 @@
 
 INTROSPECTION_GIRS += Indicate-0.5.gir
 
+Indicate-0.5.metadata: Indicate-0.5.gir
+	cp -f $(top_srcdir)/libindicate/$@.in $@
+
+BUILT_SOURCES += Indicate-0.5.metadata
+CLEANFILES += Indicate-0.5.metadata
+
 girdir = $(datadir)/gir-1.0
 gir_DATA = $(INTROSPECTION_GIRS)
 

___
Mailing list: https://launchpad.net/~ayatana-commits
Post to : ayatana-commits@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ayatana-commits
More help   : https://help.launchpad.net/ListHelp


[Ayatana-commits] [Merge] lp:~ken-vandine/libindicate/vapi_fixes into lp:libindicate

2011-04-18 Thread noreply
The proposal to merge lp:~ken-vandine/libindicate/vapi_fixes into 
lp:libindicate has been updated.

Status: Needs review = Merged

For more details, see:
https://code.launchpad.net/~ken-vandine/libindicate/vapi_fixes/+merge/58142
-- 
https://code.launchpad.net/~ken-vandine/libindicate/vapi_fixes/+merge/58142
Your team ayatana-commits is subscribed to branch lp:libindicate.

___
Mailing list: https://launchpad.net/~ayatana-commits
Post to : ayatana-commits@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ayatana-commits
More help   : https://help.launchpad.net/ListHelp