~ubuntu-branches/ubuntu/oneiric/indicator-session/oneiric-proposed

« back to all changes in this revision

Viewing changes to src/udev-mgr.c

  • Committer: Package Import Robot
  • Author(s): Ken VanDine, Ken VanDine, Ted Gould
  • Date: 2011-09-01 13:53:50 UTC
  • mfrom: (1.1.37 upstream)
  • Revision ID: package-import@ubuntu.com-20110901135350-sl5g84ls1z0r7kwc
Tags: 0.3.4.1-0ubuntu1
[Ken VanDine]
* New upstream release.
  - in a Guest session user menu is not visible (LP: #834948)
  - User name shown as [Invalid UTF-8] in live session (LP: #837246)
  - "Reboot Required" menu opens Update Manager, doesn't reboot (LP: #837658)
  - indicator-session-service crashed with SIGSEGV in 
    g_str_hash() (LP: #824243)
  - indicator-session-service crashed with SIGSEGV in 
    g_variant_unref() (LP: #833965)
* +debian/patches/revert_icon_change.patch
  - revert the icon change in greeter mode until a UIF exception is 
    approved
* +debian/source/format

[Ted Gould]
* debian/control: Adding a depend on gnome-settings-daemon to ensure that
  the required schemas are available.  (LP: #833965)

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
  
227
227
  vendor = g_udev_device_get_property (device, "ID_VENDOR_ID");
228
228
  product = g_udev_device_get_property (device, "ID_MODEL_ID");
229
 
  
 
229
 
 
230
  if (!vendor || !product) {
 
231
    return;
 
232
  }  
 
233
 
230
234
  if (action == REMOVE){
231
235
    if (g_hash_table_lookup (self->webcams_present, product) == NULL){
232
236
      g_warning ("Got a remove event on a webcam device but we don't have that device in our webcam cache");
316
320
{
317
321
  const gchar* type = NULL;
318
322
        type = g_udev_device_get_property (device, "TYPE");
319
 
  // apparently anything thats type 3 and SCSI is a Scanner
 
323
  
 
324
  if (!type) {
 
325
    return;
 
326
  }  
 
327
  
 
328
  // apparently anything thats type 6 and SCSI is a Scanner
320
329
  if (g_strcmp0 (type, "6") == 0 && action == ADD){
321
330
    
322
331
    const gchar* manufacturer = NULL;        
323
332
    manufacturer = g_udev_device_get_property (device, "ID_VENDOR");
324
333
    
325
334
    if (manufacturer != NULL){
326
 
          gchar * label = format_device_name(self, manufacturer, _("Scanner"), _("%s Scanner"));
 
335
            gchar * label = format_device_name(self, manufacturer, _("Scanner"), _("%s Scanner"));
327
336
      dbusmenu_menuitem_property_set (self->scanner_item,
328
337
                                      DBUSMENU_MENUITEM_PROP_LABEL,
329
338
                                      label);
330
 
          g_free(label);
 
339
            g_free(label);
331
340
    }
332
341
    
333
342
    gchar* random_scanner_name =        g_strdup_printf("%p--scanner", self);