~ubuntu-branches/ubuntu/oneiric/gxine/oneiric

« back to all changes in this revision

Viewing changes to src/noskin_window.c

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-05-20 11:48:40 UTC
  • mfrom: (1.1.10 upstream) (2.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20090520114840-u9x35wmoikv3gvk8
Tags: 0.5.904-2ubuntu1
* Merge from debian unstable, Ubuntu remaining changes:
  - debian/control:
    + Add Xb-Npp-xxx,Xb-Npp-Description and Xb-Npp-File fields.
  - debian/gxineplugin.links:
    + Add a link to xulrunner-addons/plugins directory.
  - mime.default:
    + Add dvd, vcd, svcd tags.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
#include "drag_drop.h"
44
44
#include "gtkvideo.h"
45
45
#include "vis.h"
 
46
#include "systray.h"
46
47
#include "xml_widgets.h"
47
48
 
48
49
/*
238
239
  window_fs_toolbar_set_geometry ();
239
240
  window_fs_toolbar_move (NULL);
240
241
  window_show (fs_toolbar, NULL);
241
 
  if (fs_always_sticky)
 
242
  if (fs_is_sticky)
242
243
    gtk_window_stick (GTK_WINDOW(fs_toolbar));
243
244
  XChangeProperty (GDK_WINDOW_XDISPLAY (fs_toolbar->window),
244
245
                   GDK_WINDOW_XWINDOW (fs_toolbar->window), opacity_lock,
340
341
 
341
342
void window_fs_stickiness_update (gboolean data)
342
343
{
343
 
  fs_always_sticky = data;
 
344
  printf ("Marking as %ssticky [%ssticky]\n", data ? "" : "non-", app_prop.sticky ? "" : "non-");
 
345
  fs_is_sticky = data;
344
346
 
345
347
  if (gtk_video_is_fullscreen ((GtkVideo *) gtv))
346
348
  {
347
349
    if (data || app_prop.sticky)
 
350
    {
 
351
      puts ("calling gtk_window_stick");
348
352
      gtk_window_stick ((GtkWindow *) app);
 
353
    }
349
354
    else
 
355
    {
 
356
      puts ("calling gtk_window_unstick");
350
357
      gtk_window_unstick ((GtkWindow *) app);
 
358
    }
351
359
  }
352
360
}
353
361
 
475
483
    gtk_video_deny_shrink ((GtkVideo *) gtv);
476
484
 
477
485
    /* restore stickiness as was, pre-fullscreen */
478
 
    if (fs_always_sticky)
 
486
    if (fs_is_sticky)
479
487
    {
480
488
      if (app_prop.sticky)
481
489
        gtk_window_stick (window);
513
521
  else
514
522
  {
515
523
    gtk_window_set_shade (window, FALSE);
516
 
    if (fs_always_sticky)
 
524
    if (fs_is_sticky)
517
525
      gtk_window_stick (window);
518
526
    if (!wm_toolbar)
519
527
      gtk_container_foreach (GTK_CONTAINER (window->bin.child),
532
540
 
533
541
void app_show (void)
534
542
{
 
543
  gtk_action_set_visible (action_items.hidemain, TRUE);
 
544
  gtk_action_set_visible (action_items.showmain, FALSE);
535
545
  gtk_widget_show (app);
536
546
  if (wm_toolbar && wm_toolbar_visible)
537
547
    gtk_widget_show (wm_toolbar);
539
549
 
540
550
void app_hide (void)
541
551
{
 
552
  /* can't do this in full-screen mode or when we have no systray */
 
553
  if (gtk_video_is_fullscreen ((GtkVideo *)gtv) || !systray_present ())
 
554
    return;
 
555
 
 
556
  gtk_action_set_visible (action_items.hidemain, FALSE);
 
557
  gtk_action_set_visible (action_items.showmain, TRUE);
542
558
  gtk_widget_hide (app);
543
559
  if (wm_toolbar && wm_toolbar_visible)
544
560
    gtk_widget_hide (wm_toolbar);
610
626
 
611
627
  if (app_prop.real_sticky != new_prop.real_sticky)
612
628
  {
613
 
    if (!new_prop.fs || !fs_always_sticky)
 
629
    if (!new_prop.fs || !fs_is_sticky)
614
630
      new_prop.sticky = new_prop.real_sticky;
615
631
    else if (!new_prop.real_sticky)
616
632
    {